src/Builders/RequestBuilder.php
private function buildParts($template)
    {
        $template[0] = str_replace([
            '$NAMESPACE$',
            '$CLASS$',
            '$RULES$'
        ], [
            $this->namespace,
            'Create' . $this->className,
            $this->buildRules(0),
        ], $template[0]);

        $template[1] = str_replace([
            '$NAMESPACE$',
            '$CLASS$',
            '$RULES$'
        ], [
            $this->namespace,
            'Update' . $this->className,
            $this->buildRules(1),
        ], $template[1]);

        return $template;
    }
private function buildParts($template)
    {
        $template[0] = str_replace([
            '$NAMESPACE$',
            '$CLASS$',
            '$RULES$'
        ], [
            $this->namespace,
            'Create' . $this->className,
            $this->buildRules(0),
        ], $template[0]);

        $template[1] = str_replace([
            '$NAMESPACE$',
            '$CLASS$',
            '$RULES$'
        ], [
            $this->namespace,
            'Update' . $this->className,
            $this->buildRules(1),
        ], $template[1]);

        return $template;
    }
private function buildParts ( $ template ) { $ template [ 0 ] = str_replace ( [ '$NAMESPACE$' , '$CLASS$' , '$RULES$' ] , [ $ this -> namespace , 'Create' . $ this -> className , $ this -> buildRules ( 0 ) , ] , $ template [ 0 ] ) ; $ template [ 1 ] = str_replace ( [ '$NAMESPACE$' , '$CLASS$' , '$RULES$' ] , [ $ this -> namespace , 'Update' . $ this -> className , $ this -> buildRules ( 1 ) , ] , $ template [ 1 ] ) ; return $ template ; }
Build request template parts

@param $template

@return mixed
Build request template parts