get() 공개 메소드

Returns the requested item
public get ( string $name ) : mixed
$name string
리턴 mixed
예제 #1
0
파일: EqualsTo.php 프로젝트: jackysong/jwt
 /**
  * {@inheritdoc}
  */
 public function validate(ValidationData $data)
 {
     if ($data->has($this->getName())) {
         return $this->getValue() === $data->get($this->getName());
     }
     return true;
 }
예제 #2
0
 /**
  * {@inheritdoc}
  */
 public function validate(ValidationData $data) : bool
 {
     if ($data->has($this->getName())) {
         return in_array($data->get($this->getName()), $this->getValue());
     }
     return true;
 }