<?php
namespace App\Entity\System;
use Doctrine\ORM\Mapping as ORM;
/**
* Class TaxonomyStatistic
*
* @ORM\Table(name="taxonomy_statistics", indexes={
*
* @ORM\Index(name="taxonomy_statistics_type_index", columns={"type"})
* })
*
* @ORM\Entity(repositoryClass="App\Repository\System\TaxonomyStatisticRepository")
*/
class TaxonomyStatistic
{
public const TYPE_REFERENCES = 'references';
public const TYPE_TOTAL_NUM_PRODUCTS_TAXONOMY = 'total';
public const DEFAULT_TAXONOMY = null;
/**
* @ORM\Column(name="id", type="integer")
*
* @ORM\Id
*
* @ORM\GeneratedValue(strategy="AUTO")
*/
private int $id;
/**
* @ORM\Column(type="string", name="type", length=100)
*/
private string $type;
/**
* @ORM\Column(type="integer", name="id_taxonomy", nullable=true)
*/
private ?int $taxonomyId;
/**
* @ORM\Column(type="integer", name="num_products", nullable=true)
*/
private ?int $numProducts;
public function getId(): int
{
return $this->id;
}
/**
* @return string
*/
public function getType(): string
{
return $this->type;
}
/**
* @return int
*/
public function getTaxonomyId(): int
{
return $this->taxonomyId;
}
public function getNumProducts(): ?int
{
return $this->numProducts;
}
/**
* @param string $type
*/
public function setType(string $type): void
{
$this->type = $type;
}
/**
* @param int|null $taxonomyId
*/
public function setTaxonomyId(?int $taxonomyId): void
{
$this->taxonomyId = $taxonomyId;
}
public function setNumProducts(?int $numProducts): void
{
$this->numProducts = $numProducts;
}
}