AppserverIo\Appserver\Core\Traits\ThreadedContextTrait::getAttribute PHP 메소드

getAttribute() 공개 메소드

Returns the value with the passed name from the context.
또한 보기: AppserverIo\Psr\Context\ContextInterface::getAttribute()
public getAttribute ( string $key ) : mixed
$key string The key of the value to return from the context.
리턴 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];
        }
    }