src/EntityDataManager.php
public function getStatementManager($statementClass = Simple::class)
    {
        /** @var StatementManager $statementManager */
        $statementManager = new $statementClass($this->config, $this);

        $collectionClass = $this->getCollectionClass();

        if (!$statementManager instanceof StatementManager) {
            throw new \Exception($statementClass.' is not an instance of Deasil\CEF\StatementManager.');
        }

        $statementManager->setResultContainerClass($collectionClass);

        return $statementManager;
    }
public function getStatementManager($statementClass = Simple::class)
    {
        /** @var StatementManager $statementManager */
        $statementManager = new $statementClass($this->config, $this);

        $collectionClass = $this->getCollectionClass();

        if (!$statementManager instanceof StatementManager) {
            throw new \Exception($statementClass.' is not an instance of Deasil\CEF\StatementManager.');
        }

        $statementManager->setResultContainerClass($collectionClass);

        return $statementManager;
    }
public function getStatementManager ( $ statementClass = Simple :: class ) { /** @var StatementManager $statementManager */ $ statementManager = new $ statementClass ( $ this -> config , $ this ) ; $ collectionClass = $ this -> getCollectionClass ( ) ; if ( ! $ statementManager instanceof StatementManager ) { throw new \ Exception ( $ statementClass . ' is not an instance of Deasil\CEF\StatementManager.' ) ; } $ statementManager -> setResultContainerClass ( $ collectionClass ) ; return $ statementManager ; }
Statement Manager Factory.

@param string $statementClass

@throws \Exception

@return StatementManager
Statement Manager Factory .