public function reference($useCaseName, $resourcePart = null, Request $request = null)
    {
        if(null === $request) {
            $request = $this->getRequest();
        }
        return $this->getUseCaseFactoryInstance()
            ->setUseCaseName($useCaseName)
            ->setRequest($request)
            ->getResource($resourcePart);
    }
public function reference($useCaseName, $resourcePart = null, Request $request = null)
    {
        if(null === $request) {
            $request = $this->getRequest();
        }
        return $this->getUseCaseFactoryInstance()
            ->setUseCaseName($useCaseName)
            ->setRequest($request)
            ->getResource($resourcePart);
    }
public function reference ( $ useCaseName , $ resourcePart = null , Request $ request = null ) { if ( null === $ request ) { $ request = $ this -> getRequest ( ) ; } return $ this -> getUseCaseFactoryInstance ( ) -> setUseCaseName ( $ useCaseName ) -> setRequest ( $ request ) -> getResource ( $ resourcePart ) ; }
Factory method for use of a new UseCase class
Returns whole resource or just one part

@param string $useCaseName
@param string $resourcePart
@param Request $request
@return mixed
Factory method for use of a new UseCase class Returns whole resource or just one part