public function __get($asserter) { switch (strtolower($asserter)) { case 'iszero': return $this->{$asserter}(); default: return parent::__get($asserter); } }
public function __get($property) { switch (strtolower($property)) { case 'isimmutable': return $this->isImmutable(); default: return parent::__get($property); } }
/** * {@inheritdoc} */ public function __get($asserter) { switch (\strtolower($asserter)) { case 'count': return $this->count(); default: return parent::__get($asserter); } }
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); } }
/** * {@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); } }