original_string: public function getPage($stub)
      {
          $this->logger->addNotice(print_r($this->cfg->getAll(), 1));
  
          $stmtManager = $this->getStatementManager(Simple::class);
  
          /** @var Select $stmtBuilder */
          $stmtBuilder = $stmtManager->getStatementBuilder(Select::class);
  
          /** @var PageCollection $collection */
          $collection = $stmtManager->setStatement($stmtBuilder->setWhere(['stub = :stub']))
              ->setArguments(['stub' => $stub])
              ->execute();
  
          /** @var PageDataModel $c */
          $c = $collection->current();
  
          return $c;
      }
code: public function getPage($stub)
      {
          $this->logger->addNotice(print_r($this->cfg->getAll(), 1));
  
          $stmtManager = $this->getStatementManager(Simple::class);
  
          /** @var Select $stmtBuilder */
          $stmtBuilder = $stmtManager->getStatementBuilder(Select::class);
  
          /** @var PageCollection $collection */
          $collection = $stmtManager->setStatement($stmtBuilder->setWhere(['stub = :stub']))
              ->setArguments(['stub' => $stub])
              ->execute();
  
          /** @var PageDataModel $c */
          $c = $collection->current();
  
          return $c;
      }
code_tokens: public function getPage ( $ stub ) { $ this -> logger -> addNotice ( print_r ( $ this -> cfg -> getAll ( ) , 1 ) ) ; $ stmtManager = $ this -> getStatementManager ( Simple :: class ) ; /** @var Select $stmtBuilder */ $ stmtBuilder = $ stmtManager -> getStatementBuilder ( Select :: class ) ; /** @var PageCollection $collection */ $ collection = $ stmtManager -> setStatement ( $ stmtBuilder -> setWhere ( [ 'stub = :stub' ] ) ) -> setArguments ( [ 'stub' => $ stub ] ) -> execute ( ) ; /** @var PageDataModel $c */ $ c = $ collection -> current ( ) ; return $ c ; }
docstring: Get Page.
  
  @ApiAction()
  
  @param string $stub the url friendly name of the page.
  
  @return PageDataModel
docstring_tokens: Get Page .