protected function mutatorNameOrFail(string $name, string $operator): string
    {
        if (! $this->hasMutator($name, $operator)) {
            throw new DynamicMutatorNotDefinedException('Mutator not defined!', 0, null, [
                'name'     => $name,
                'operator' => $operator,
                'handler'  => $this->getName(),
            ]);
        }

        return $name;
    }
protected function mutatorNameOrFail(string $name, string $operator): string
    {
        if (! $this->hasMutator($name, $operator)) {
            throw new DynamicMutatorNotDefinedException('Mutator not defined!', 0, null, [
                'name'     => $name,
                'operator' => $operator,
                'handler'  => $this->getName(),
            ]);
        }

        return $name;
    }
protected function mutatorNameOrFail ( string $ name , string $ operator ) : string { if ( ! $ this -> hasMutator ( $ name , $ operator ) ) { throw new DynamicMutatorNotDefinedException ( 'Mutator not defined!' , 0 , null , [ 'name' => $ name , 'operator' => $ operator , 'handler' => $ this -> getName ( ) , ] ) ; } return $ name ; }
Return a valid mutator name or throw an exceptions.

@param string $name
@param string $operator

@throws DynamicMutatorNotDefinedException

@return string
Return a valid mutator name or throw an exceptions .