| 1 | <?php  | 
            ||
| 5 | class Mixed { | 
            ||
| 6 | /**  | 
            ||
| 7 | * Converts a value to an array containing this value unless it is an array  | 
            ||
| 8 | *  | 
            ||
| 9 | * @param mixed $argument  | 
            ||
| 10 | * @return array  | 
            ||
| 11 | */  | 
            ||
| 12 | 2 | 	public static function toArray( $argument ) { | 
            |
| 19 | |||
| 20 | /**  | 
            ||
| 21 | * Executes a value depending on what type it is and returns the result  | 
            ||
| 22 | * Callable: call; return result  | 
            ||
| 23 | * Instance: call method; return result  | 
            ||
| 24 | * Class: instantiate; call method; return result  | 
            ||
| 25 | * Other: return value without taking any action  | 
            ||
| 26 | *  | 
            ||
| 27 | * @param mixed $entity  | 
            ||
| 28 | * @param array $arguments  | 
            ||
| 29 | * @param string $method  | 
            ||
| 30 | * @return mixed  | 
            ||
| 31 | */  | 
            ||
| 32 | 5 | 	public static function value( $entity, $arguments = [], $method = '__invoke' ) { | 
            |
| 47 | |||
| 48 | /**  | 
            ||
| 49 | * Check if a value is a valid class name  | 
            ||
| 50 | *  | 
            ||
| 51 | * @param mixed $class_name  | 
            ||
| 52 | * @return boolean  | 
            ||
| 53 | */  | 
            ||
| 54 | 1 | 	public static function isClass( $class_name ) { | 
            |
| 57 | }  | 
            ||
| 58 |