Pantheon\Terminus\Models\TerminusModel::has PHP 메소드

has() 공개 메소드

Checks whether the model has an attribute
public has ( string $attribute ) : boolean
$attribute string Name of the attribute key
리턴 boolean True if attribute exists, false otherwise
    public function has($attribute)
    {
        $isset = isset($this->attributes->{$attribute});
        return $isset;
    }