activityType = $activityType; $this->primaryObjectType = $primaryObjectType; $this->primaryObjectId = $primaryObjectId; $this->createdAt = new \DateTime(); } /** * @return int */ public function getId() { return $this->id; } /** * @return int */ public function getActivityType() { return $this->activityType; } /** * @param int $activityType * @return Activity */ public function setActivityType($activityType) { $this->activityType = $activityType; return $this; } /** * @return \DateTime */ public function getCreatedAt() { return $this->createdAt; } /** * @param \DateTime $createdAt * @return Activity */ public function setCreatedAt(\DateTime $createdAt) { $this->createdAt = $createdAt; return $this; } /** * @return int */ public function getPrimaryObjectId() { return $this->primaryObjectId; } /** * @param $primaryObjectId * @return Activity */ public function setPrimaryObjectId($primaryObjectId) { $this->primaryObjectId = $primaryObjectId; return $this; } /** * @return Account */ public function getUser() { return $this->user; } /** * @param Account $user * @return Activity */ public function setUser($user) { $this->user = $user; return $this; } /** * @return int */ public function getPrimaryObjectType() { return $this->primaryObjectType; } /** * @param int $primaryObjectType * @return Activity */ public function setPrimaryObjectType($primaryObjectType) { $this->primaryObjectType = $primaryObjectType; return $this; } /** * @return int */ public function getSecondaryObjectType() { return $this->secondaryObjectType; } /** * @param int $secondaryObjectType * @return Activity */ public function setSecondaryObjectType($secondaryObjectType) { $this->secondaryObjectType = $secondaryObjectType; return $this; } /** * @return int */ public function getSecondaryObjectId() { return $this->secondaryObjectId; } /** * @param int $secondaryObjectId * @return Activity */ public function setSecondaryObjectId($secondaryObjectId) { $this->secondaryObjectId = $secondaryObjectId; return $this; } }