Skip to content

Instantly share code, notes, and snippets.

@ksmylmz
Created November 15, 2020 12:44
Show Gist options
  • Save ksmylmz/2c0b4015d575700d7aa39a02f7c96814 to your computer and use it in GitHub Desktop.
Save ksmylmz/2c0b4015d575700d7aa39a02f7c96814 to your computer and use it in GitHub Desktop.
<?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