예제 #1
0
파일: integer.php 프로젝트: atoum/atoum
 public function __get($property)
 {
     switch (strtolower($property)) {
         case 'iszero':
             return $this->isZero();
         default:
             return parent::__get($property);
     }
 }
예제 #2
0
파일: boolean.php 프로젝트: atoum/atoum
 public function __get($property)
 {
     switch (strtolower($property)) {
         case 'isfalse':
         case 'istrue':
             return $this->{$property}();
         default:
             return parent::__get($property);
     }
 }