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)]);
}