/** * Construtor. * * @param DecoratorAbstract $decorator * @throws IllegalArgumentException * */ public function __construct(DecoratorAbstract $decorator = NULL) { $this->_type = 'html'; $this->_document = DocumentAbstract::factory($this->_type); $this->_decorator = $decorator; }
/** * @param string $type * @param DecoratorAbstract $decorator * @throws IllegalArgumentException * */ public function __construct($output = 'html', DecoratorAbstract $decorator = NULL) { $this->_document = DocumentAbstract::factory($output); $this->_decorator = $decorator; }
/** * Construtor * */ public function __construct() { $this->_document = DocumentAbstract::factory(self::T_SAF_TYPE); }