src/Entity/StoryRecord.php line 9
<?phpnamespace App\Entity;use App\Repository\StoryRecordRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: StoryRecordRepository::class)]class StoryRecord extends PostRecord{#[ORM\Column(length: 255, nullable: true)]private ?string $profileStoryTotalInteractions = null;#[ORM\Column(length: 255, nullable: true)]private ?string $profilePostFollows = null;#[ORM\Column(length: 255, nullable: true)]private ?string $profilePostProfileVists = null;#[ORM\Column(length: 255, nullable: true)]private ?string $profileStoryImpressions = null;#[ORM\Column(length: 255, nullable: true)]private ?string $profileStoryTapsForward = null;#[ORM\Column(length: 255, nullable: true)]private ?string $profileStoryTapsBack = null;#[ORM\Column(length: 255, nullable: true)]private ?string $profileStoryExits = null;#[ORM\Column(length: 255, nullable: true)]private ?string $profileStoryReplies = null;public function getProfileStoryTotalInteractions(): ?string{return $this->profileStoryTotalInteractions;}public function setProfileStoryTotalInteractions(?string $profileStoryTotalInteractions): static{$this->profileStoryTotalInteractions = $profileStoryTotalInteractions;return $this;}public function getProfilePostFollows(): ?string{return $this->profilePostFollows;}public function setProfilePostFollows(?string $profilePostFollows): static{$this->profilePostFollows = $profilePostFollows;return $this;}public function getProfilePostProfileVists(): ?string{return $this->profilePostProfileVists;}public function setProfilePostProfileVists(?string $profilePostProfileVists): static{$this->profilePostProfileVists = $profilePostProfileVists;return $this;}public function getProfileStoryImpressions(): ?string{return $this->profileStoryImpressions;}public function setProfileStoryImpressions(?string $profileStoryImpressions): static{$this->profileStoryImpressions = $profileStoryImpressions;return $this;}public function getProfileStoryTapsForward(): ?string{return $this->profileStoryTapsForward;}public function setProfileStoryTapsForward(?string $profileStoryTapsForward): static{$this->profileStoryTapsForward = $profileStoryTapsForward;return $this;}public function getProfileStoryTapsBack(): ?string{return $this->profileStoryTapsBack;}public function setProfileStoryTapsBack(?string $profileStoryTapsBack): static{$this->profileStoryTapsBack = $profileStoryTapsBack;return $this;}public function getProfileStoryExits(): ?string{return $this->profileStoryExits;}public function setProfileStoryExits(?string $profileStoryExits): static{$this->profileStoryExits = $profileStoryExits;return $this;}public function getProfileStoryReplies(): ?string{return $this->profileStoryReplies;}public function setProfileStoryReplies(?string $profileStoryReplies): static{$this->profileStoryReplies = $profileStoryReplies;return $this;}/*** @return string|null*/public function getStoryEngagement(): ?string{return $this->profileStoryTotalInteractions + $this->profilePostProfileVists + $this->profilePostFollows ;}public function getTotalInteractions(): ?int{return $this->getProfileStoryTotalInteractions() + $this->getProfileStoryReplies() + $this->getShareCount() ;}}