src/Entity/CompanyFeed.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CompanyFeedRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=CompanyFeedRepository::class)
  7.  */
  8. class CompanyFeed
  9. {
  10.     /**
  11.      * @ORM\Id()
  12.      * @ORM\GeneratedValue()
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="integer")
  18.      */
  19.     private $nbVisitors;
  20.     /**
  21.      * @ORM\Column(type="integer")
  22.      */
  23.     private $nbFollowers;
  24.     /**
  25.      * @ORM\Column(type="integer")
  26.      */
  27.     private $nbSurveys;
  28.     /**
  29.      * @ORM\Column(type="integer")
  30.      */
  31.     private $nbReviews;
  32.     /**
  33.      * @ORM\Column(type="integer")
  34.      */
  35.     private $nbArticlesShare;
  36.     /**
  37.      * @ORM\Column(type="integer")
  38.      */
  39.     private $nbArticlesLike;
  40.     /**
  41.      * @ORM\Column(type="integer")
  42.      */
  43.     private $nbArticlesComment;
  44.     /**
  45.      * @ORM\Column(type="integer")
  46.      */
  47.     private $nbBlogsShare;
  48.     /**
  49.      * @ORM\Column(type="integer")
  50.      */
  51.     private $nbBlogsLike;
  52.     /**
  53.      * @ORM\Column(type="integer")
  54.      */
  55.     private $nbBlogsComment;
  56.     /**
  57.      * @ORM\Column(type="boolean")
  58.      */
  59.     private $visitorsChanged;
  60.     /**
  61.      * @ORM\Column(type="boolean")
  62.      */
  63.     private $followersChanged;
  64.     /**
  65.      * @ORM\Column(type="boolean")
  66.      */
  67.     private $surveysChanged;
  68.     /**
  69.      * @ORM\Column(type="boolean")
  70.      */
  71.     private $reviewsChanged;
  72.     /**
  73.      * @ORM\Column(type="boolean")
  74.      */
  75.     private $articlesShareChanged;
  76.     /**
  77.      * @ORM\Column(type="boolean")
  78.      */
  79.     private $articlesLikeChanged;
  80.     /**
  81.      * @ORM\Column(type="boolean")
  82.      */
  83.     private $articlesCommentChanged;
  84.     // /**
  85.     //  * @ORM\Column(type="boolean")
  86.     //  */
  87.     // private $BlogsShareChanged;
  88.     // /**
  89.     //  * @ORM\Column(type="boolean")
  90.     //  */
  91.     // private $BlogsLikeChanged;
  92.     // /**
  93.     //  * @ORM\Column(type="boolean")
  94.     //  */
  95.     // private $BlogsCommentChanged;
  96.     /**
  97.      * @ORM\OneToOne(targetEntity=Company::class, inversedBy="companyFeed", cascade={"persist", "remove"})
  98.      */
  99.     private $company;
  100.     /**
  101.      * Company constructor.
  102.      */
  103.     public function __construct()
  104.     {
  105.         $this->nbVisitors 0;
  106.         $this->nbFollowers 0;
  107.         $this->nbSurveys 0;
  108.         $this->nbReviews 0;
  109.         $this->nbArticlesShare 0;
  110.         $this->nbArticlesLike 0;
  111.         $this->nbArticlesComment 0;
  112.         $this->nbBlogsShare 0;
  113.         $this->nbBlogsLike 0;
  114.         $this->nbBlogsComment 0;
  115.         $this->visitorsChanged false;
  116.         $this->followersChanged false;
  117.         $this->surveysChanged false;
  118.         $this->reviewsChanged false;
  119.         $this->articlesShareChanged false;
  120.         $this->articlesLikeChanged false;
  121.         $this->articlesCommentChanged false;
  122.         // $this->BlogsShareChanged = false;
  123.         // $this->BlogsLikeChanged = false;
  124.         // $this->BlogsCommentChanged = false;
  125.     }
  126.     public function getId(): ?int
  127.     {
  128.         return $this->id;
  129.     }
  130.     public function getNbVisitors(): ?int
  131.     {
  132.         return $this->nbVisitors;
  133.     }
  134.     public function setNbVisitors(int $nbVisitors): self
  135.     {
  136.         $this->nbVisitors $nbVisitors;
  137.         return $this;
  138.     }
  139.     public function getNbFollowers(): ?int
  140.     {
  141.         return $this->nbFollowers;
  142.     }
  143.     public function setNbFollowers(int $nbFollowers): self
  144.     {
  145.         $this->nbFollowers $nbFollowers;
  146.         return $this;
  147.     }
  148.     public function getNbSurveys(): ?int
  149.     {
  150.         return $this->nbSurveys;
  151.     }
  152.     public function setNbSurveys(int $nbSurveys): self
  153.     {
  154.         $this->nbSurveys $nbSurveys;
  155.         return $this;
  156.     }
  157.     public function getNbReviews(): ?int
  158.     {
  159.         return $this->nbReviews;
  160.     }
  161.     public function setNbReviews(int $nbReviews): self
  162.     {
  163.         $this->nbReviews $nbReviews;
  164.         return $this;
  165.     }
  166.     public function getNbArticlesShare(): ?int
  167.     {
  168.         return $this->nbArticlesShare;
  169.     }
  170.     public function setNbArticlesShare(int $nbArticlesShare): self
  171.     {
  172.         $this->nbArticlesShare $nbArticlesShare;
  173.         return $this;
  174.     }
  175.     public function getNbArticlesLike(): ?int
  176.     {
  177.         return $this->nbArticlesLike;
  178.     }
  179.     public function setNbArticlesLike(int $nbArticlesLike): self
  180.     {
  181.         $this->nbArticlesLike $nbArticlesLike;
  182.         return $this;
  183.     }
  184.     public function getNbArticlesComment(): ?int
  185.     {
  186.         return $this->nbArticlesComment;
  187.     }
  188.     public function setNbArticlesComment(int $nbArticlesComment): self
  189.     {
  190.         $this->nbArticlesComment $nbArticlesComment;
  191.         return $this;
  192.     }
  193.     public function getNbBlogsShare(): ?int
  194.     {
  195.         return $this->nbBlogsShare;
  196.     }
  197.     public function setNbBlogsShare(int $nbBlogsShare): self
  198.     {
  199.         $this->nbBlogsShare $nbBlogsShare;
  200.         return $this;
  201.     }
  202.     public function getNbBlogsLike(): ?int
  203.     {
  204.         return $this->nbBlogsLike;
  205.     }
  206.     public function setNbBlogsLike(int $nbBlogsLike): self
  207.     {
  208.         $this->nbBlogsLike $nbBlogsLike;
  209.         return $this;
  210.     }
  211.     public function getNbBlogsComment(): ?int
  212.     {
  213.         return $this->nbBlogsComment;
  214.     }
  215.     public function setNbBlogsComment(int $nbBlogsComment): self
  216.     {
  217.         $this->nbBlogsComment $nbBlogsComment;
  218.         return $this;
  219.     }
  220.     public function getVisitorsChanged(): ?bool
  221.     {
  222.         return $this->visitorsChanged;
  223.     }
  224.     public function setVisitorsChanged(bool $visitorsChanged): self
  225.     {
  226.         $this->visitorsChanged $visitorsChanged;
  227.         return $this;
  228.     }
  229.     public function getFollowersChanged(): ?bool
  230.     {
  231.         return $this->followersChanged;
  232.     }
  233.     public function setFollowersChanged(bool $followersChanged): self
  234.     {
  235.         $this->followersChanged $followersChanged;
  236.         return $this;
  237.     }
  238.     public function getSurveysChanged(): ?bool
  239.     {
  240.         return $this->surveysChanged;
  241.     }
  242.     public function setSurveysChanged(bool $surveysChanged): self
  243.     {
  244.         $this->surveysChanged $surveysChanged;
  245.         return $this;
  246.     }
  247.     public function getReviewsChanged(): ?bool
  248.     {
  249.         return $this->reviewsChanged;
  250.     }
  251.     public function setReviewsChanged(bool $reviewsChanged): self
  252.     {
  253.         $this->reviewsChanged $reviewsChanged;
  254.         return $this;
  255.     }
  256.     public function getArticlesShareChanged(): ?bool
  257.     {
  258.         return $this->articlesShareChanged;
  259.     }
  260.     public function setArticlesShareChanged(bool $articlesShareChanged): self
  261.     {
  262.         $this->articlesShareChanged $articlesShareChanged;
  263.         return $this;
  264.     }
  265.     public function getArticlesLikeChanged(): ?bool
  266.     {
  267.         return $this->articlesLikeChanged;
  268.     }
  269.     public function setArticlesLikeChanged(bool $articlesLikeChanged): self
  270.     {
  271.         $this->articlesLikeChanged $articlesLikeChanged;
  272.         return $this;
  273.     }
  274.     public function getArticlesCommentChanged(): ?bool
  275.     {
  276.         return $this->articlesCommentChanged;
  277.     }
  278.     public function setArticlesCommentChanged(bool $articlesCommentChanged): self
  279.     {
  280.         $this->articlesCommentChanged $articlesCommentChanged;
  281.         return $this;
  282.     }
  283.     // public function getBlogsShareChanged(): ?bool
  284.     // {
  285.     //     return $this->BlogsShareChanged;
  286.     // }
  287.     // public function setBlogsShareChanged(bool $BlogsShareChanged): self
  288.     // {
  289.     //     $this->BlogsShareChanged = $BlogsShareChanged;
  290.     //     return $this;
  291.     // }
  292.     // public function getBlogsLikeChanged(): ?bool
  293.     // {
  294.     //     return $this->BlogsLikeChanged;
  295.     // }
  296.     // public function setBlogsLikeChanged(bool $BlogsLikeChanged): self
  297.     // {
  298.     //     $this->BlogsLikeChanged = $BlogsLikeChanged;
  299.     //     return $this;
  300.     // }
  301.     // public function getBlogsCommentChanged(): ?bool
  302.     // {
  303.     //     return $this->BlogsCommentChanged;
  304.     // }
  305.     // public function setBlogsCommentChanged(bool $BlogsCommentChanged): self
  306.     // {
  307.     //     $this->BlogsCommentChanged = $BlogsCommentChanged;
  308.     //     return $this;
  309.     // }
  310.     public function getCompany(): ?Company
  311.     {
  312.         return $this->company;
  313.     }
  314.     public function setCompany(?Company $company): self
  315.     {
  316.         $this->company $company;
  317.         return $this;
  318.     }
  319. }