for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace App\Movies\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Serializer\Annotation\Groups;
/**
* @ORM\Embeddable
*/
class MovieTMDB
{
* @Groups({"list", "view"})
* @ORM\Column(type="integer")
private $id;
* @ORM\Column(type="decimal", nullable=true)
private $voteAverage;
* @ORM\Column(type="integer", nullable=true)
private $voteCount;
public function __construct(int $tmdbId)
$this->id = $tmdbId;
}
* @param float $voteAverage
* @return MovieTMDB
public function setVoteAverage(float $voteAverage): self
$this->voteAverage = $voteAverage;
return $this;
* @param int $voteCount
public function setVoteCount(int $voteCount): self
$this->voteCount = $voteCount;
* @return mixed
public function getId()
return $this->id;
public function getVoteAverage()
return $this->voteAverage;
public function getVoteCount()
return $this->voteCount;