<?php
namespace App\Entity;
use App\Repository\CompanyFeedRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=CompanyFeedRepository::class)
*/
class CompanyFeed
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="integer")
*/
private $nbVisitors;
/**
* @ORM\Column(type="integer")
*/
private $nbFollowers;
/**
* @ORM\Column(type="integer")
*/
private $nbSurveys;
/**
* @ORM\Column(type="integer")
*/
private $nbReviews;
/**
* @ORM\Column(type="integer")
*/
private $nbArticlesShare;
/**
* @ORM\Column(type="integer")
*/
private $nbArticlesLike;
/**
* @ORM\Column(type="integer")
*/
private $nbArticlesComment;
/**
* @ORM\Column(type="integer")
*/
private $nbBlogsShare;
/**
* @ORM\Column(type="integer")
*/
private $nbBlogsLike;
/**
* @ORM\Column(type="integer")
*/
private $nbBlogsComment;
/**
* @ORM\Column(type="boolean")
*/
private $visitorsChanged;
/**
* @ORM\Column(type="boolean")
*/
private $followersChanged;
/**
* @ORM\Column(type="boolean")
*/
private $surveysChanged;
/**
* @ORM\Column(type="boolean")
*/
private $reviewsChanged;
/**
* @ORM\Column(type="boolean")
*/
private $articlesShareChanged;
/**
* @ORM\Column(type="boolean")
*/
private $articlesLikeChanged;
/**
* @ORM\Column(type="boolean")
*/
private $articlesCommentChanged;
// /**
// * @ORM\Column(type="boolean")
// */
// private $BlogsShareChanged;
// /**
// * @ORM\Column(type="boolean")
// */
// private $BlogsLikeChanged;
// /**
// * @ORM\Column(type="boolean")
// */
// private $BlogsCommentChanged;
/**
* @ORM\OneToOne(targetEntity=Company::class, inversedBy="companyFeed", cascade={"persist", "remove"})
*/
private $company;
/**
* Company constructor.
*/
public function __construct()
{
$this->nbVisitors = 0;
$this->nbFollowers = 0;
$this->nbSurveys = 0;
$this->nbReviews = 0;
$this->nbArticlesShare = 0;
$this->nbArticlesLike = 0;
$this->nbArticlesComment = 0;
$this->nbBlogsShare = 0;
$this->nbBlogsLike = 0;
$this->nbBlogsComment = 0;
$this->visitorsChanged = false;
$this->followersChanged = false;
$this->surveysChanged = false;
$this->reviewsChanged = false;
$this->articlesShareChanged = false;
$this->articlesLikeChanged = false;
$this->articlesCommentChanged = false;
// $this->BlogsShareChanged = false;
// $this->BlogsLikeChanged = false;
// $this->BlogsCommentChanged = false;
}
public function getId(): ?int
{
return $this->id;
}
public function getNbVisitors(): ?int
{
return $this->nbVisitors;
}
public function setNbVisitors(int $nbVisitors): self
{
$this->nbVisitors = $nbVisitors;
return $this;
}
public function getNbFollowers(): ?int
{
return $this->nbFollowers;
}
public function setNbFollowers(int $nbFollowers): self
{
$this->nbFollowers = $nbFollowers;
return $this;
}
public function getNbSurveys(): ?int
{
return $this->nbSurveys;
}
public function setNbSurveys(int $nbSurveys): self
{
$this->nbSurveys = $nbSurveys;
return $this;
}
public function getNbReviews(): ?int
{
return $this->nbReviews;
}
public function setNbReviews(int $nbReviews): self
{
$this->nbReviews = $nbReviews;
return $this;
}
public function getNbArticlesShare(): ?int
{
return $this->nbArticlesShare;
}
public function setNbArticlesShare(int $nbArticlesShare): self
{
$this->nbArticlesShare = $nbArticlesShare;
return $this;
}
public function getNbArticlesLike(): ?int
{
return $this->nbArticlesLike;
}
public function setNbArticlesLike(int $nbArticlesLike): self
{
$this->nbArticlesLike = $nbArticlesLike;
return $this;
}
public function getNbArticlesComment(): ?int
{
return $this->nbArticlesComment;
}
public function setNbArticlesComment(int $nbArticlesComment): self
{
$this->nbArticlesComment = $nbArticlesComment;
return $this;
}
public function getNbBlogsShare(): ?int
{
return $this->nbBlogsShare;
}
public function setNbBlogsShare(int $nbBlogsShare): self
{
$this->nbBlogsShare = $nbBlogsShare;
return $this;
}
public function getNbBlogsLike(): ?int
{
return $this->nbBlogsLike;
}
public function setNbBlogsLike(int $nbBlogsLike): self
{
$this->nbBlogsLike = $nbBlogsLike;
return $this;
}
public function getNbBlogsComment(): ?int
{
return $this->nbBlogsComment;
}
public function setNbBlogsComment(int $nbBlogsComment): self
{
$this->nbBlogsComment = $nbBlogsComment;
return $this;
}
public function getVisitorsChanged(): ?bool
{
return $this->visitorsChanged;
}
public function setVisitorsChanged(bool $visitorsChanged): self
{
$this->visitorsChanged = $visitorsChanged;
return $this;
}
public function getFollowersChanged(): ?bool
{
return $this->followersChanged;
}
public function setFollowersChanged(bool $followersChanged): self
{
$this->followersChanged = $followersChanged;
return $this;
}
public function getSurveysChanged(): ?bool
{
return $this->surveysChanged;
}
public function setSurveysChanged(bool $surveysChanged): self
{
$this->surveysChanged = $surveysChanged;
return $this;
}
public function getReviewsChanged(): ?bool
{
return $this->reviewsChanged;
}
public function setReviewsChanged(bool $reviewsChanged): self
{
$this->reviewsChanged = $reviewsChanged;
return $this;
}
public function getArticlesShareChanged(): ?bool
{
return $this->articlesShareChanged;
}
public function setArticlesShareChanged(bool $articlesShareChanged): self
{
$this->articlesShareChanged = $articlesShareChanged;
return $this;
}
public function getArticlesLikeChanged(): ?bool
{
return $this->articlesLikeChanged;
}
public function setArticlesLikeChanged(bool $articlesLikeChanged): self
{
$this->articlesLikeChanged = $articlesLikeChanged;
return $this;
}
public function getArticlesCommentChanged(): ?bool
{
return $this->articlesCommentChanged;
}
public function setArticlesCommentChanged(bool $articlesCommentChanged): self
{
$this->articlesCommentChanged = $articlesCommentChanged;
return $this;
}
// public function getBlogsShareChanged(): ?bool
// {
// return $this->BlogsShareChanged;
// }
// public function setBlogsShareChanged(bool $BlogsShareChanged): self
// {
// $this->BlogsShareChanged = $BlogsShareChanged;
// return $this;
// }
// public function getBlogsLikeChanged(): ?bool
// {
// return $this->BlogsLikeChanged;
// }
// public function setBlogsLikeChanged(bool $BlogsLikeChanged): self
// {
// $this->BlogsLikeChanged = $BlogsLikeChanged;
// return $this;
// }
// public function getBlogsCommentChanged(): ?bool
// {
// return $this->BlogsCommentChanged;
// }
// public function setBlogsCommentChanged(bool $BlogsCommentChanged): self
// {
// $this->BlogsCommentChanged = $BlogsCommentChanged;
// return $this;
// }
public function getCompany(): ?Company
{
return $this->company;
}
public function setCompany(?Company $company): self
{
$this->company = $company;
return $this;
}
}