public hasAttribute ( string $name ) : boolean | ||
$name | string | The attribute name |
Результат | boolean | true if the attribute exists, false otherwise |
public function hasAttribute($name)
{
return array_key_exists($name, $this->attributes);
}