| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class T3Status implements \Aimeos\Base\Criteria\Plugin\Iface |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * Translates the MShop value into its TYPO3 equivalent. |
||
| 25 | * |
||
| 26 | * @param integer $value Status value |
||
| 27 | * @return integer Value for TYPO3 "disabled" field |
||
| 28 | */ |
||
| 29 | public function translate( $value ) |
||
| 30 | { |
||
| 31 | return ( $value == 1 ? 0 : 1 ); |
||
| 32 | } |
||
| 33 | |||
| 34 | |||
| 35 | /** |
||
| 36 | * Reverses the translation from the TYPO3 value to the MShop constant. |
||
| 37 | * |
||
| 38 | * @param integer $value Value for TYPO3 "disabled" field |
||
| 39 | * @return integer Status value |
||
| 40 | */ |
||
| 41 | public function reverse( $value ) |
||
| 44 | } |
||
| 45 | } |
||
| 46 |