Example #1
0
 /**
  * @param Table $table
  *
  * @throws \InvalidArgumentException
  */
 public function __construct(Table $table)
 {
     parent::__construct();
     if (!$table instanceof Table) {
         throw new \InvalidArgumentException(sprintf('Constructor expects instance of Table, given %s.', $table));
     }
     $this->table = $table;
 }
 /**
  * @param Table $table
  *
  * @throws \InvalidArgumentException
  */
 public function __construct(Table $table)
 {
     parent::__construct();
     if (!$table instanceof Table) {
         throw new \InvalidArgumentException(sprintf('Constructor parameter should be instance of %s.', $table));
     }
     $this->table = $table;
 }
Example #3
0
 /**
  * @param DatabaseTable $seeder
  *
  * @throws \InvalidArgumentException
  */
 public function __construct(DatabaseTable $seeder)
 {
     parent::__construct();
     if (!$seeder instanceof DatabaseTable) {
         throw new \InvalidArgumentException(sprintf('Constructor expects instance of DatabaseTable, givem %s.', $seeder));
     }
     $this->seeder = $seeder;
 }