Created
November 15, 2020 12:44
-
-
Save ksmylmz/2c0b4015d575700d7aa39a02f7c96814 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
interface IReadable | |
{ | |
public function read(); | |
} | |
interface ICreatable | |
{ | |
public function create(); | |
} | |
interface IUpdateable | |
{ | |
public function update(); | |
} | |
interface IDeletable | |
{ | |
public function delete(); | |
} | |
class AdminUserActions implements ICreatable,IReadable,IUpdateable,Ideletable | |
{ | |
public function create(){ | |
//createAcitons | |
} | |
public function read(){ | |
//readAcitons | |
} | |
public function update(){ | |
//updateAcitons | |
} | |
public function delete(){ | |
//deleteAcitons | |
} | |
} | |
class ClientActions implements IReadable | |
{ | |
public function read(){ | |
//readActions | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment