public function __construct(SqlCommand $baseCommand) { parent::__construct(); $this->baseCommand = $baseCommand; $this->Parameters = $baseCommand->Parameters; }
public function __construct($userId, $token, Date $insertTime, $serializedSession) { parent::__construct(Queries::UPDATE_USER_SESSION); $this->AddParameter(new Parameter(ParameterNames::USER_ID, $userId)); $this->AddParameter(new Parameter(ParameterNames::SESSION_TOKEN, $token)); $this->AddParameter(new Parameter(ParameterNames::DATE_MODIFIED, $insertTime->ToDatabase())); $this->AddParameter(new Parameter(ParameterNames::USER_SESSION, $serializedSession)); }
public function __construct(ISqlCommand $baseCommand, $limit, $offset) { parent::__construct(); $this->baseCommand = $baseCommand; $this->limit = $limit; $this->offset = $offset; $this->Parameters = $baseCommand->Parameters; }