createdAt = new \DateTime('now'); $this->createdBy = $account ?? new NullAccount(); $this->old = $old; $this->new = $new; $this->type = $type; $this->subtype = $subtype; $this->module = $module; $this->ref = $ref; $this->content = $content; $this->ip = $ip; } /** * Get id. * * @return int * * @since 1.0.0 */ public function getId() : int { return $this->id; } /** * Get type. * * @return int * * @since 1.0.0 */ public function getType() : int { return $this->type; } /** * Get subtype. * * @return int * * @since 1.0.0 */ public function getSubType() : int { return $this->subtype; } /** * Get Module. * * @return null|string * * @since 1.0.0 */ public function getModule() : ?string { return $this->module; } /** * Get reference. * * If existing this can be a reference to another model * * @return null|string * * @since 1.0.0 */ public function getRef() : ?string { return $this->ref; } /** * Get content. * * @return null|string * * @since 1.0.0 */ public function getContent() : ?string { return $this->content; } /** * Get old value. * * @return null|string * * @since 1.0.0 */ public function getOld() : ?string { return $this->old; } /** * Get new value. * * @return null|string * * @since 1.0.0 */ public function getNew() : ?string { return $this->new; } /** * Get created by. * * @return Account|int * * @since 1.0.0 */ public function getCreatedBy() { return $this->createdBy; } /** * Get created at. * * @return \DateTime * * @since 1.0.0 */ public function getCreatedAt() : \DateTime { return $this->createdAt; } /** * Get ip. * * @return int * * @since 1.0.0 */ public function getIp() : int { return $this->ip; } }