Lcobucci\JWT\ValidationData::get PHP Method

get() public method

Returns the requested item
public get ( string $name ) : mixed
$name string
return mixed
    public function get(string $name)
    {
        return $this->items[$name] ?? null;
    }

Usage Example

Beispiel #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::get