Example #1
0
 /**
  * @param \PDOStatement $statement
  */
 public function __construct(\PDOStatement $statement)
 {
     parent::__construct();
     if (null !== $statement) {
         $this->_statement = $statement;
     }
 }
Example #2
0
 public function __destruct()
 {
     Oasys::getStore()->merge($this->toArray());
     parent::__destruct();
 }
Example #3
0
File: Map.php Project: kisma/kisma
 /**
  * @param array $mappings Initial mappings, if any
  *
  * @throws \InvalidArgumentException
  */
 public function __construct(array $mappings = array())
 {
     parent::__construct();
     $this->_map = $mappings;
 }
Example #4
0
 /**
  * @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.');
     }
 }
Example #5
0
 /**
  * @param array|object $fileName
  *
  * @return \Kisma\Core\Utility\FileSystem
  */
 public function __construct($fileName)
 {
     parent::__construct();
     $this->_fileName = $fileName;
     $this->open();
 }