예제 #1
0
 protected function __construct($value)
 {
     GenericValidator::checkDialUpOptionAnswer($value);
     $this->_value = $value;
 }
예제 #2
0
파일: YesNo.php 프로젝트: alekc/phbind
 /**
  * @param $value
  *
  * @return static
  */
 public static function create($value)
 {
     GenericValidator::checkYesNoAnswer($value);
     return new static($value);
 }
예제 #3
0
파일: TextRawMap.php 프로젝트: alekc/phbind
 /**
  * @param $value
  *
  * @return static
  */
 public static function create($value)
 {
     $ins = new static(GenericValidator::checkTextRawMapAnswer($value));
     return $ins;
 }