public function __construct($objectKey, $primaryKey = null) { if (empty($objectKey)) { throw new \InvalidArgumentException('objectKey can not be empty'); } $this->objectKey = $objectKey; $this->setPrimaryKey($primaryKey); }