for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the theroadbunch/bouncer package.
*
* (c) Dan McAdams <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace RoadBunch\String;
* Class NamedStringCollection
* @author Dan McAdams
* @package RoadBunch\String
class NamedStringCollection extends StringCollection implements NamedStringCollectionInterface
{
protected $name;
* FilterList constructor.
* @param string $name
* @param string[] $elements An array of strings
public function __construct(string $name, array $elements = [])
$this->name = $name;
parent::__construct($elements);
}
* The list name
* @return string
public function name(): string
return $this->name;