mirror of
https://github.com/kevinveenbirkenbach/coding-challenge-online-shop.git
synced 2025-09-18 07:46:01 +02:00
Implemented color filters to navbar
This commit is contained in:
27
src/router/link/LinkCollection.php
Normal file
27
src/router/link/LinkCollection.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?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){
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function getName(): string
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
}
|
||||
|
13
src/router/link/LinkCollectionInterface.php
Normal file
13
src/router/link/LinkCollectionInterface.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
namespace router\link;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
interface LinkCollectionInterface
|
||||
{
|
||||
public function getName():string;
|
||||
}
|
||||
|
Reference in New Issue
Block a user