| 1 | <?php |
||
| 12 | class FluentGenerator implements ApiGenerator { |
||
| 13 | |||
| 14 | private $name; |
||
| 15 | private $params; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param string $name |
||
| 19 | */ |
||
| 20 | 3 | public function __construct( $name ) { |
|
| 23 | |||
| 24 | /** |
||
| 25 | * Convenience method for using this fluidly |
||
| 26 | * |
||
| 27 | * @param string $name |
||
| 28 | * |
||
| 29 | * @return FluentGenerator |
||
| 30 | */ |
||
| 31 | 1 | public static function factory( $name ) { |
|
| 34 | |||
| 35 | /** |
||
| 36 | * @return string[] |
||
| 37 | */ |
||
| 38 | 3 | public function getParams() { |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @param string $key optionally with the 'g' prefix |
||
| 46 | * @param string $value |
||
| 47 | * |
||
| 48 | * @return $this |
||
| 49 | */ |
||
| 50 | 3 | public function set( $key, $value ) { |
|
| 55 | |||
| 56 | /** |
||
| 57 | * @param string $key |
||
| 58 | * |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | 3 | private function addKeyPrefixIfNeeded( $key ) { |
|
| 67 | |||
| 68 | } |
||
| 69 |