crdate; } /** * Set the creation date * * @param \DateTime $crdate */ public function setCrdate(\DateTime $crdate) { $this->crdate = $crdate; } /** * Get the last modified timestamp * * @return \DateTime */ public function getTstamp(): \DateTime { return $this->tstamp; } /** * Set the last modified timestamp * * @param \DateTime $tstamp */ public function setTstamp(\DateTime $tstamp) { $this->tstamp = $tstamp; } /** * Return the expired timestamp or zero if not yet expired * * @return int */ public function getExpired() { return $this->expired; } /** * Returns true if the entry has expired * * @return bool */ public function isExpired() { return (bool)$this->getExpired(); } /** * Set the timestamp for the entry's expiry, or zero if the entry has not expired * * @param int $expired */ public function setExpired(int $expired) { $this->expired = $expired; } /** * Returns the unchangeable entry value * * @return int */ public function getImmutableValue() { return $this->immutableValue; } /** * Set the unchangeable entry value. * * Should only be done once. * * @param int $immutableValue */ public function setImmutableValue(int $immutableValue) { $this->immutableValue = $immutableValue; } /** * Returns the changeable entry value * * @return int */ public function getMutableValue() { return $this->mutableValue; } /** * Set the changeable entry value * * @param int $mutableValue */ public function setMutableValue(int $mutableValue) { $this->mutableValue = $mutableValue; } /** * Get the entry karma source * * @return string */ public function getKarmaSource() { return $this->karmaSource; } /** * Set the entry karma source * * @param string $karmaSource */ public function setKarmaSource(string $karmaSource) { $this->karmaSource = $karmaSource; } /** * Get the issuer code * * @return string */ public function getIssuer() { return $this->issuer; } /** * Set the issuer code * * @param string $issuer */ public function setIssuer(string $issuer) { $this->issuer = $issuer; } /** * Get the issuer action code * * @return string */ public function getIssuerAction() { return $this->issuerAction; } /** * Set the issuer action code * * @param string $issuerAction */ public function setIssuerAction(string $issuerAction) { $this->issuerAction = $issuerAction; } /** * Get the entry campaign that generated this entry, or null if no campaign * * @return \T3o\Karma\Domain\Model\Campaign */ public function getCampaign() { return $this->campaign; } /** * Set the campaign that generated this entry * * @param \T3o\Karma\Domain\Model\Campaign $campaign */ public function setCampaign(Campaign $campaign) { $this->campaign = $campaign; } /** * Get the user this entry is for * * @return \T3o\Karma\Domain\Model\FrontendUser */ public function getUser() { return $this->user; } /** * Set the user the entry is for * * @param \T3o\Karma\Domain\Model\FrontendUser $user */ public function setUser(FrontendUser $user) { $this->user = $user; } }