for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Koriym\AppStateDiagram;
final class LabelNameFactory
{
// @codeCoverageIgnoreStart
// phpcs:ignore Squiz.Commenting.FunctionComment.WrongStyle
private function __construct()
}
// @codeCoverageIgnoreEnd
public static function getInstance(string $label): LabelNameInterface
if ($label === 'title') {
return new LabelNameTitle();
return new LabelName();