* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License 3.0 (AFL-3.0) */ namespace PrestaShop\Module\ProductComment\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Table() * @ORM\Entity() */ class ProductCommentReport { /** * @ORM\Id * @ORM\ManyToOne(targetEntity="ProductComment") * @ORM\JoinColumn(name="id_product_comment", referencedColumnName="id_product_comment") * * @var ProductComment */ private $comment; /** * @ORM\Id * @ORM\Column(name="id_customer", type="integer") * * @var int */ private $customerId; /** * @param ProductComment $comment * @param int $customerId */ public function __construct( ProductComment $comment, $customerId ) { $this->comment = $comment; $this->customerId = $customerId; } /** * @return ProductComment */ public function getComment() { return $this->comment; } /** * @return int */ public function getCustomerId() { return $this->customerId; } }