for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Lichtenwallner (https://lichtenwallner.at)
*
* @see https://github.com/jolicht/markdown-cms for the canonical source repository
* @license https://github.com/jolicht/markdown-cms/blob/master/LICENSE MIT
* @copyright Copyright (c) Johannes Lichtenwallner
*/
declare(strict_types = 1);
namespace Jolicht\MarkdownCms\Taxonomy;
* Taxonomy for tagging blog entries
class Tag
{
* Id
* @var string
private $id;
* Title
private $title;
* Constructor
* @param string $id
* @param string $title
public function __construct(string $id, string $title = null)
$this->id = $id;
$this->title = $title;
if (null === $this->title) {
$this->title = $id;
}
* Get id
* @return string
public function getId() : string
return $this->id;
* Get title
public function getTitle() : string
return $this->title;