src/Entity/RecordYoutube.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RecordYoutubeRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassRecordYoutubeRepository::class)]
  6. class RecordYoutube extends RecordSocialMedia
  7. {
  8.     const REACH_METRIC_NAME 'page_posts_impressions';
  9.     #[ORM\Column(length255nullabletrue)]
  10.     private ?string $channelLikesCount null;
  11.     #[ORM\Column(length255nullabletrue)]
  12.     private ?string $channelDislikesCount null;
  13.     #[ORM\Column(length255nullabletrue)]
  14.     private ?string $channelCommentsCount null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $youtubeChannelFollowsPerDay null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $youtubeChannelUnfollowsPerDay null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $channelViewsCount null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $channelTotalVideosCount null;
  23.     #[ORM\Column(length255nullabletrue)]
  24.     private ?string $youtubeChannelEstimatedMinutesWatched null;
  25.     #[ORM\Column(length255nullabletrue)]
  26.     private ?string $youtubeChannelAverageViewDuration null;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $youtubeChannelSharesPerDay null;
  29.     #[ORM\Column(length255nullabletrue)]
  30.     private ?string $youtubeChannelCommentsPerDay null;
  31.     #[ORM\Column(length255nullabletrue)]
  32.     private ?string $youtubeChannelLikesPerDay null;
  33.     #[ORM\Column(length255nullabletrue)]
  34.     private ?string $youtubeChannelDislikesPerDay null;
  35.     public function getChannelLikesCount(): ?string
  36.     {
  37.         return $this->channelLikesCount;
  38.     }
  39.     public function setChannelLikesCount(?string $channelLikesCount): static
  40.     {
  41.         $this->channelLikesCount $channelLikesCount;
  42.         return $this;
  43.     }
  44.     public function getChannelDislikesCount(): ?string
  45.     {
  46.         return $this->channelDislikesCount;
  47.     }
  48.     public function setChannelDislikesCount(?string $channelDislikesCount): static
  49.     {
  50.         $this->channelDislikesCount $channelDislikesCount;
  51.         return $this;
  52.     }
  53.     public function getChannelCommentsCount(): ?string
  54.     {
  55.         return $this->channelCommentsCount;
  56.     }
  57.     public function setChannelCommentsCount(?string $channelCommentsCount): static
  58.     {
  59.         $this->channelCommentsCount $channelCommentsCount;
  60.         return $this;
  61.     }
  62.     public function getYoutubeChannelFollowsPerDay(): ?string
  63.     {
  64.         return $this->youtubeChannelFollowsPerDay;
  65.     }
  66.     public function setYoutubeChannelFollowsPerDay(?string $youtubeChannelFollowsPerDay): static
  67.     {
  68.         $this->youtubeChannelFollowsPerDay $youtubeChannelFollowsPerDay;
  69.         return $this;
  70.     }
  71.     public function getYoutubeChannelUnfollowsPerDay(): ?string
  72.     {
  73.         return $this->youtubeChannelUnfollowsPerDay;
  74.     }
  75.     public function setYoutubeChannelUnfollowsPerDay(?string $youtubeChannelUnfollowsPerDay): static
  76.     {
  77.         $this->youtubeChannelUnfollowsPerDay $youtubeChannelUnfollowsPerDay;
  78.         return $this;
  79.     }
  80.     public function getChannelViewsCount(): ?string
  81.     {
  82.         return $this->channelViewsCount;
  83.     }
  84.     public function setChannelViewsCount(?string $channelViewsCount): static
  85.     {
  86.         $this->channelViewsCount $channelViewsCount;
  87.         return $this;
  88.     }
  89.     public function getChannelTotalVideosCount(): ?string
  90.     {
  91.         return $this->channelTotalVideosCount;
  92.     }
  93.     public function setChannelTotalVideosCount(?string $channelTotalVideosCount): static
  94.     {
  95.         $this->channelTotalVideosCount $channelTotalVideosCount;
  96.         return $this;
  97.     }
  98.     public function getYoutubeChannelEstimatedMinutesWatched(): ?string
  99.     {
  100.         return $this->youtubeChannelEstimatedMinutesWatched;
  101.     }
  102.     public function setYoutubeChannelEstimatedMinutesWatched(?string $youtubeChannelEstimatedMinutesWatched): static
  103.     {
  104.         $this->youtubeChannelEstimatedMinutesWatched $youtubeChannelEstimatedMinutesWatched;
  105.         return $this;
  106.     }
  107.     public function getYoutubeChannelAverageViewDuration(): ?string
  108.     {
  109.         return $this->youtubeChannelAverageViewDuration;
  110.     }
  111.     public function setYoutubeChannelAverageViewDuration(?string $youtubeChannelAverageViewDuration): static
  112.     {
  113.         $this->youtubeChannelAverageViewDuration $youtubeChannelAverageViewDuration;
  114.         return $this;
  115.     }
  116.     public function getYoutubeChannelSharesPerDay(): ?string
  117.     {
  118.         return $this->youtubeChannelSharesPerDay;
  119.     }
  120.     public function setYoutubeChannelSharesPerDay(?string $youtubeChannelSharesPerDay): static
  121.     {
  122.         $this->youtubeChannelSharesPerDay $youtubeChannelSharesPerDay;
  123.         return $this;
  124.     }
  125.     public function getYoutubeChannelCommentsPerDay(): ?string
  126.     {
  127.         return $this->youtubeChannelCommentsPerDay;
  128.     }
  129.     public function setYoutubeChannelCommentsPerDay(?string $youtubeChannelCommentsPerDay): static
  130.     {
  131.         $this->youtubeChannelCommentsPerDay $youtubeChannelCommentsPerDay;
  132.         return $this;
  133.     }
  134.     public function getReachMetricName(): ?string
  135.     {
  136.         return self::REACH_METRIC_NAME;
  137.     }
  138.     public function getPostsPerDay(): ?string
  139.     {
  140.         return $this->getPostsCount();
  141.     }
  142.     public function isYoutube(): bool
  143.     {
  144.         return true;
  145.     }
  146.     public function getYoutubeChannelLikesPerDay(): ?string
  147.     {
  148.         return $this->youtubeChannelLikesPerDay;
  149.     }
  150.     public function setYoutubeChannelLikesPerDay(?string $youtubeChannelLikesPerDay): static
  151.     {
  152.         $this->youtubeChannelLikesPerDay $youtubeChannelLikesPerDay;
  153.         return $this;
  154.     }
  155.     public function getYoutubeChannelDislikesPerDay(): ?string
  156.     {
  157.         return $this->youtubeChannelDislikesPerDay;
  158.     }
  159.     public function setYoutubeChannelDislikesPerDay(?string $youtubeChannelDislikesPerDay): static
  160.     {
  161.         $this->youtubeChannelDislikesPerDay $youtubeChannelDislikesPerDay;
  162.         return $this;
  163.     }
  164. }