Lcobucci\JWT\ValidationData::has PHP Метод

has() публичный Метод

Returns if the item is present
public has ( string $name ) : boolean
$name string
Результат boolean
    public function has(string $name) : bool
    {
        return !empty($this->items[$name]);
    }

Usage Example

Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function validate(ValidationData $data)
 {
     if ($data->has($this->getName())) {
         return $this->getValue() === $data->get($this->getName());
     }
     return true;
 }
All Usage Examples Of Lcobucci\JWT\ValidationData::has