public function defineFunction()
    {
        $name = $this->mock->getName();

        $parameterBuilder = new ParameterBuilder();
        $parameterBuilder->build($name);

        $data = [
            "namespace" => $this->mock->getNamespace(),
            "name"      => $name,
            "fqfn"      => $this->mock->getFQFN(),
            "signatureParameters"   => $parameterBuilder->getSignatureParameters(),
            "bodyParameters"        => $parameterBuilder->getBodyParameters(),
        ];
        $this->template->setVar($data, false);
        $definition = $this->template->render();

        eval($definition);
    }
public function defineFunction()
    {
        $name = $this->mock->getName();

        $parameterBuilder = new ParameterBuilder();
        $parameterBuilder->build($name);

        $data = [
            "namespace" => $this->mock->getNamespace(),
            "name"      => $name,
            "fqfn"      => $this->mock->getFQFN(),
            "signatureParameters"   => $parameterBuilder->getSignatureParameters(),
            "bodyParameters"        => $parameterBuilder->getBodyParameters(),
        ];
        $this->template->setVar($data, false);
        $definition = $this->template->render();

        eval($definition);
    }
public function defineFunction ( ) { $ name = $ this -> mock -> getName ( ) ; $ parameterBuilder = new ParameterBuilder ( ) ; $ parameterBuilder -> build ( $ name ) ; $ data = [ "namespace" => $ this -> mock -> getNamespace ( ) , "name" => $ name , "fqfn" => $ this -> mock -> getFQFN ( ) , "signatureParameters" => $ parameterBuilder -> getSignatureParameters ( ) , "bodyParameters" => $ parameterBuilder -> getBodyParameters ( ) , ] ; $ this -> template -> setVar ( $ data , false ) ; $ definition = $ this -> template -> render ( ) ; eval ( $ definition ) ; }
Defines the mock function.

@SuppressWarnings(PHPMD)
Defines the mock function .