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

hasAttribute() public method

Queries whether the attribute already exists or not.
public hasAttribute ( string $key ) : boolean
$key string The attribute to query for
return boolean TRUE if the attribute already exists, else FALSE
    public function hasAttribute($key)
    {
        return isset($this[$this->maskKey($key)]);
    }