public function materialize() { if (!is_int($this->uploadId)) { throw new \Exception('cannot materialize LatestScannerProxy because upload Id is no number'); } parent::materialize(); }
/** * @param int $groupId * @param array $options * @param string $dbViewName */ public function __construct($groupId, $options = array(), $dbViewName = 'license_all') { $this->groupId = $groupId; if ($groupId == 0) { $dbViewQuery = $this->queryOnlyLicenseRef($options); parent::__construct($dbViewQuery, $dbViewName); return; } $dbViewQuery = $this->queryLicenseCandidate($options); if (!array_key_exists('diff', $options)) { $dbViewQuery .= " UNION " . $this->queryOnlyLicenseRef($options); } parent::__construct($dbViewQuery, $dbViewName); }