public function __construct($operationType, Common\ISource $source) { if (!self::isValid($operationType)) { throw new PinqException('Invalid operation type'); } $this->operationType = $operationType; $this->source = $source; }