예제 #1
0
파일: BaseNode.php 프로젝트: ferodss/input
 public function getValue(string $field, $value)
 {
     $this->checkConstraints($field, $value);
     if ($this->transformer) {
         return $this->transformer->transform($value);
     }
     return $value;
 }
예제 #2
0
파일: BaseNode.php 프로젝트: reisraff/input
 public function getValue(string $field, $value)
 {
     if ($this->allowNull() && $value === null) {
         return $value;
     }
     $this->checkConstraints($field, $value);
     if ($this->transformer) {
         return $this->transformer->transform($value);
     }
     return $value;
 }