Mongolid\Model\Attributes::hasMutatorMethod PHP Method

hasMutatorMethod() protected method

Verify if model has a mutator method defined.
protected hasMutatorMethod ( mixed $key, mixed $prefix ) : boolean
$key mixed Attribute name.
$prefix mixed Method prefix to be used.
return boolean
    protected function hasMutatorMethod($key, $prefix)
    {
        $method = $this->buildMutatorMethod($key, $prefix);
        return method_exists($this, $method);
    }