| 1 | <?php |
||
| 10 | class Psr4ResourceInflector implements ResourceInflectorInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * The base namespace. |
||
| 14 | * |
||
| 15 | * @author Andrea Marco Sartori |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | protected $namespace; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * The version number. |
||
| 22 | * |
||
| 23 | * @author Andrea Marco Sartori |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $version; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Set the base namespace. |
||
| 30 | * |
||
| 31 | * @author Andrea Marco Sartori |
||
| 32 | * @param string $namespace |
||
| 33 | * @return $this |
||
| 34 | */ |
||
| 35 | public function baseNamespace($namespace) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Set the version number. |
||
| 44 | * |
||
| 45 | * @author Andrea Marco Sartori |
||
| 46 | * @param string $version |
||
| 47 | * @return $this |
||
| 48 | */ |
||
| 49 | public function version($version) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Inflect the given name returning the full resource name. |
||
| 58 | * |
||
| 59 | * @author Andrea Marco Sartori |
||
| 60 | * @param string $name |
||
| 61 | * @return string |
||
| 62 | */ |
||
| 63 | public function inflect($name) |
||
| 69 | } |
||
| 70 |