original_string: protected function registerPageFormat(string $pageSize = null, string $orientation = null): PdfInterface
      {
          in_array($pageSize, $this->pageTypes)
              ? $this->setProperty('pageSize', $pageSize)
              : $this->setProperty('pageSize', static::DEFAULT_PAGE_SIZE);
  
          $this->setPageOrientation($orientation);
  
          return $this;
      }
code: protected function registerPageFormat(string $pageSize = null, string $orientation = null): PdfInterface
      {
          in_array($pageSize, $this->pageTypes)
              ? $this->setProperty('pageSize', $pageSize)
              : $this->setProperty('pageSize', static::DEFAULT_PAGE_SIZE);
  
          $this->setPageOrientation($orientation);
  
          return $this;
      }
code_tokens: protected function registerPageFormat ( string $ pageSize = null , string $ orientation = null ) : PdfInterface { in_array ( $ pageSize , $ this -> pageTypes ) ? $ this -> setProperty ( 'pageSize' , $ pageSize ) : $ this -> setProperty ( 'pageSize' , static :: DEFAULT_PAGE_SIZE ) ; $ this -> setPageOrientation ( $ orientation ) ; return $ this ; }
docstring: Generate and store a defined PDF page format.
  
  @param string $pageSize    The page format type ['Letter','Legal', etc.]
  @param string $orientation The page orientation ['Portrait','Landscape']
  
  @return PdfInterface The current instance
docstring_tokens: Generate and store a defined PDF page format .