/** * @param \PDOStatement $statement */ public function __construct(\PDOStatement $statement) { parent::__construct(); if (null !== $statement) { $this->_statement = $statement; } }
/** * @param array $settings */ public function __construct($settings = array()) { parent::__construct($settings); // Load default if one exists and none passed in... $this->_schema = $this->_schema ?: static::loadDefaultSchema($this->_type); }
/** * @param array $mappings Initial mappings, if any * * @throws \InvalidArgumentException */ public function __construct(array $mappings = array()) { parent::__construct(); $this->_map = $mappings; }
/** * @param array $settings * * @throws \InvalidArgumentException */ public function __construct($settings = array()) { if (is_string($settings)) { $settings = array('fileName' => $settings); } parent::__construct($settings); if (null === $this->_fileName) { throw new \InvalidArgumentException('No "fileName" specified.'); } }
/** * @param array|object $fileName * * @return \Kisma\Core\Utility\FileSystem */ public function __construct($fileName) { parent::__construct(); $this->_fileName = $fileName; $this->open(); }