AppserverIo\Appserver\Core\Traits\ThreadedContextTrait::getAttribute PHP Method

getAttribute() public method

Returns the value with the passed name from the context.
See also: AppserverIo\Psr\Context\ContextInterface::getAttribute()
public getAttribute ( string $key ) : mixed
$key string The key of the value to return from the context.
return mixed The requested attribute
    public function getAttribute($key)
    {
        // query whether the identifier exists or not
        if (isset($this[$uid = $this->maskKey($key)])) {
            return $this[$uid];
        }
    }