public function create(
        ReflectionClass $modelReflection,
        $classFileName,
        $shortClassName,
        $classNamespace,
        $contractFileName,
        $shortContractName,
        $contractNamespace,
        array $methods
    ) {
        $createdFiles = [$this->createRepository(
            $modelReflection,
            $classFileName,
            $shortClassName,
            $classNamespace,
            $shortContractName,
            $contractNamespace,
            $methods
        )];

        if ($shortContractName) {
            $createdFiles[] = $this->createContract(
                $modelReflection,
                $contractFileName,
                $shortContractName,
                $contractNamespace,
                $methods
            );
        }

        return $createdFiles;
    }
public function create(
        ReflectionClass $modelReflection,
        $classFileName,
        $shortClassName,
        $classNamespace,
        $contractFileName,
        $shortContractName,
        $contractNamespace,
        array $methods
    ) {
        $createdFiles = [$this->createRepository(
            $modelReflection,
            $classFileName,
            $shortClassName,
            $classNamespace,
            $shortContractName,
            $contractNamespace,
            $methods
        )];

        if ($shortContractName) {
            $createdFiles[] = $this->createContract(
                $modelReflection,
                $contractFileName,
                $shortContractName,
                $contractNamespace,
                $methods
            );
        }

        return $createdFiles;
    }
public function create ( ReflectionClass $ modelReflection , $ classFileName , $ shortClassName , $ classNamespace , $ contractFileName , $ shortContractName , $ contractNamespace , array $ methods ) { $ createdFiles = [ $ this -> createRepository ( $ modelReflection , $ classFileName , $ shortClassName , $ classNamespace , $ shortContractName , $ contractNamespace , $ methods ) ] ; if ( $ shortContractName ) { $ createdFiles [ ] = $ this -> createContract ( $ modelReflection , $ contractFileName , $ shortContractName , $ contractNamespace , $ methods ) ; } return $ createdFiles ; }
Create the repository and contract.

@param  ReflectionClass $modelReflection
@param  string $classFileName
@param  string $shortClassName
@param  string $classNamespace
@param  string $contractFileName
@param  string|bool $shortContractName
@param  string|bool $contractNamespace
@param  array $methods
@return array
Create the repository and contract .