__get() 공개 메소드

public __get ( $property )
예제 #1
0
 public function __get($asserter)
 {
     switch (strtolower($asserter)) {
         case 'iszero':
             return $this->{$asserter}();
         default:
             return parent::__get($asserter);
     }
 }
예제 #2
0
 public function __get($property)
 {
     switch (strtolower($property)) {
         case 'isimmutable':
             return $this->isImmutable();
         default:
             return parent::__get($property);
     }
 }
예제 #3
0
 /**
  * {@inheritdoc}
  */
 public function __get($asserter)
 {
     switch (\strtolower($asserter)) {
         case 'count':
             return $this->count();
         default:
             return parent::__get($asserter);
     }
 }
예제 #4
0
 public function __get($asserter)
 {
     switch (strtolower($asserter)) {
         case 'size':
             return $this->size();
         case 'isempty':
             return $this->isEmpty();
         case 'isnotempty':
             return $this->isNotEmpty();
         default:
             return parent::__get($asserter);
     }
 }
예제 #5
0
 /**
  * {@inheritdoc}
  */
 public function __get($asserter)
 {
     switch (strtolower($asserter)) {
         case 'size':
             return $this->size();
         case 'isempty':
             return $this->isEmpty();
         case 'isnotempty':
             return $this->isNotEmpty();
         case 'hasallelements':
             return $this->hasAllElements();
         case 'hasnoelements':
             return $this->hasNoElements();
         case 'issorted':
             return $this->isSorted();
         case 'isnotsorted':
             return $this->isNotSorted();
         default:
             return parent::__get($asserter);
     }
 }