| 1 | <?php  | 
            ||
| 13 | trait PermissionTrait  | 
            ||
| 14 | { | 
            ||
| 15 | /**  | 
            ||
| 16 | * Gets the permission by its name  | 
            ||
| 17 | * @param $name  | 
            ||
| 18 | * @return Permission  | 
            ||
| 19 | */  | 
            ||
| 20 | public static function find($name)  | 
            ||
| 24 | |||
| 25 | /**  | 
            ||
| 26 | * Creates a role  | 
            ||
| 27 | * @param $arguments  | 
            ||
| 28 | * @return Permission  | 
            ||
| 29 | */  | 
            ||
| 30 | public static function create($arguments)  | 
            ||
| 45 | |||
| 46 | /**  | 
            ||
| 47 | * Finds the permission by its name, if it does not exists, the role will be created  | 
            ||
| 48 | * @param $name  | 
            ||
| 49 | * @return Permission  | 
            ||
| 50 | */  | 
            ||
| 51 | public static function findOrCreate($name)  | 
            ||
| 60 | }  |