Total Complexity | 8 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
21 | class T3Salutation implements \Aimeos\Base\Criteria\Plugin\Iface |
||
22 | { |
||
23 | /** |
||
24 | * Translates the MShop value into its TYPO3 equivalent. |
||
25 | * |
||
26 | * @param string $value Address constant from \Aimeos\MShop\Common\Item\Address\Base |
||
27 | * @param mixed $type Expected value type |
||
28 | * @return integer TYPO3 gender value or 99 if nothing matches |
||
29 | */ |
||
30 | public function translate( $value, $type = null ) |
||
43 | } |
||
44 | |||
45 | |||
46 | /** |
||
47 | * Reverses the translation from the TYPO3 value to the MShop constant. |
||
48 | * |
||
49 | * @param string $value TYPO3 value or empty if not set |
||
50 | * @param mixed $type Expected value type |
||
51 | * @return string Address constant from \Aimeos\MShop\Common\Item\Address\Base |
||
52 | */ |
||
53 | public function reverse( $value, $type = null ) |
||
68 |