| Total Complexity | 1 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | #[ORM\MappedSuperclass] |
||
| 13 | abstract class Thesaurus extends AbstractModel implements HasSiteInterface |
||
| 14 | { |
||
| 15 | use HasName; |
||
| 16 | use HasSite; |
||
| 17 | |||
| 18 | #[ORM\Column(type: 'integer', options: ['default' => 0, 'unsigned' => true])] |
||
| 19 | private int $usageCount = 0; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * The nb of cards that use this thesaurus. |
||
| 23 | * |
||
| 24 | * Computed by DB triggers. |
||
| 25 | */ |
||
| 26 | public function getUsageCount(): int |
||
| 31 |