src/TranslatableBootForm.php
protected function addMethod($name, $parameters)
    {
        $methods = $this->methods();

        $parameters = is_array($parameters) ? $parameters : [$parameters];

        $methods[] = compact('name', 'parameters');

        $this->methods($methods);
    }
protected function addMethod($name, $parameters)
    {
        $methods = $this->methods();

        $parameters = is_array($parameters) ? $parameters : [$parameters];

        $methods[] = compact('name', 'parameters');

        $this->methods($methods);
    }
protected function addMethod ( $ name , $ parameters ) { $ methods = $ this -> methods ( ) ; $ parameters = is_array ( $ parameters ) ? $ parameters : [ $ parameters ] ; $ methods [ ] = compact ( 'name' , 'parameters' ) ; $ this -> methods ( $ methods ) ; }
Adds a method.

@param string       $name
@param string|array $parameters
Adds a method .