예제 #1
0
파일: InstanceOf.php 프로젝트: cwcw/cms
 public function __construct($class)
 {
     if (!is_string($class)) {
         throw new InvalidArgumentException(__METHOD__ . ' expects parameter 1 to be a string');
     }
     parent::__construct($class);
 }
예제 #2
0
파일: EqualTo.php 프로젝트: cwcw/cms
 public function __construct($value, $strict = false)
 {
     parent::__construct($value);
     $this->_strict = (bool) $strict;
 }
예제 #3
0
파일: InArray.php 프로젝트: cwcw/cms
 public function __construct(array $list, $emptyListSatisfiesAll = false, $strict = false)
 {
     parent::__construct($list);
     $this->_emptyListSatisfiesAll = (bool) $emptyListSatisfiesAll;
     $this->_strict = (bool) $strict;
 }
예제 #4
0
파일: AlwaysTrue.php 프로젝트: cwcw/cms
 public function __construct()
 {
     parent::__construct(null);
 }