| 1 | <?php |
||
| 11 | class PropertyEncoder |
||
| 12 | { |
||
| 13 | private $prefix; |
||
| 14 | private $uri; |
||
| 15 | |||
| 16 | public function __construct(string $prefix, string $uri) |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Encode a field name. If the field reprents a compound type then $key |
||
| 24 | * should be passed to represent the key for the value of the compound |
||
| 25 | * field. |
||
| 26 | */ |
||
| 27 | public function encode(string $fieldName, string $key = null): string |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Return the PHPCR namespace prefix (alias). |
||
| 45 | */ |
||
| 46 | public function getPrefix(): string |
||
| 50 | |||
| 51 | /** |
||
| 52 | * Return the namespace URI. |
||
| 53 | */ |
||
| 54 | public function getUri(): string |
||
| 58 | } |
||
| 59 |