mirror of
https://github.com/kevinveenbirkenbach/coding-challenge-online-shop.git
synced 2025-06-25 23:45:30 +02:00
29 lines
496 B
PHP
29 lines
496 B
PHP
<?php
|
|
namespace router\link;
|
|
|
|
use Doctrine\Common\Collections\ArrayCollection;
|
|
|
|
/**
|
|
*
|
|
* @author kevinfrantz
|
|
*
|
|
*/
|
|
final class LinkCollection extends ArrayCollection implements LinkCollectionInterface
|
|
{
|
|
/**
|
|
* @var string
|
|
*/
|
|
private $name;
|
|
|
|
public function __construct(string $name,?array $links = []){
|
|
parent::__construct($links);
|
|
$this->name = $name;
|
|
}
|
|
|
|
public function getName(): string
|
|
{
|
|
return $this->name;
|
|
}
|
|
}
|
|
|