public function __construct(array $arrModels, $strTable)
{
$arrModels = array_values($arrModels);
foreach ($arrModels as $objModel) {
if (!$objModel instanceof Model) {
throw new \InvalidArgumentException('Invalid type: ' . gettype($objModel));
}
}
$this->arrModels = $arrModels;
$this->strTable = $strTable;
}