1 | <?php |
||
9 | class Factory { |
||
10 | |||
11 | /** |
||
12 | * Get the type for the specified class |
||
13 | * |
||
14 | * @param string $class |
||
15 | * @return string |
||
16 | */ |
||
17 | public function get_type( $class ) { |
||
20 | |||
21 | /** |
||
22 | * Get an instance of the specified type |
||
23 | * |
||
24 | * @param string $type |
||
25 | * @return mixed |
||
26 | */ |
||
27 | 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.