| 1 | <?php |
||
| 21 | abstract class AbstractExtra implements ExtraInterface |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $tableName; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var Adapter |
||
| 30 | */ |
||
| 31 | protected $adapter; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $tableName |
||
| 35 | * @param Adapter $adapter |
||
| 36 | */ |
||
| 37 | public function __construct($tableName, Adapter $adapter) |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return \Zend\Db\Platform\PlatformInterface |
||
| 45 | */ |
||
| 46 | protected function getPlatform() |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return ResultSet |
||
| 53 | */ |
||
| 54 | abstract protected function show(); |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @param File $file |
||
| 58 | * @param ResultSet $triggers |
||
| 59 | * @return $this |
||
| 60 | */ |
||
| 61 | abstract protected function write(File $file, ResultSet $triggers); |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @param File $file |
||
| 65 | * @return $this |
||
| 66 | */ |
||
| 67 | public function writeIfAny(File $file) |
||
| 78 | } |
||
| 79 |
In PHP, under loose comparison (like
==, or!=, orswitchconditions), values of different types might be equal.For
integervalues, zero is a special case, in particular the following results might be unexpected: