From bf6c0346d8d35a719dd1bff1cb4d573d422f99ff Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 31 May 2017 09:31:18 +0200 Subject: WIP Signed-off-by: Thomas Citharel --- src/Wallabag/CoreBundle/Entity/Activity.php | 295 ++++++++++++++++++++++++++++ 1 file changed, 295 insertions(+) create mode 100644 src/Wallabag/CoreBundle/Entity/Activity.php (limited to 'src/Wallabag/CoreBundle/Entity/Activity.php') diff --git a/src/Wallabag/CoreBundle/Entity/Activity.php b/src/Wallabag/CoreBundle/Entity/Activity.php new file mode 100644 index 00000000..08a3f1fb --- /dev/null +++ b/src/Wallabag/CoreBundle/Entity/Activity.php @@ -0,0 +1,295 @@ +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; + } +} -- cgit v1.2.3