1 | <?php |
||
8 | class Factory { |
||
9 | |||
10 | /** |
||
11 | * Get the type for the specified class |
||
12 | * |
||
13 | * @param string $class |
||
14 | * @return string |
||
15 | */ |
||
16 | public function get_type( $class ) { |
||
19 | |||
20 | /** |
||
21 | * Get an instance of the specified type |
||
22 | * |
||
23 | * @param string $type |
||
24 | * @return mixed |
||
25 | */ |
||
26 | public function make( $type ) { |
||
48 | } |
Very long variable names usually make code harder to read. It is therefore recommended not to make variable names too verbose.