. /** * Contains the string_title class of value object, which provides access to a simple string. * * @package core * @subpackage course * @copyright 2020 Jake Dallimore * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace core_course\local\entity; defined('MOODLE_INTERNAL') || die(); /** * The string_title class of value object, which provides access to a simple string. * * @copyright 2020 Jake Dallimore * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class string_title implements title { /** @var string $title the title string. */ private $title; /** * The string_title constructor. * * @param string $title a string. */ public function __construct(string $title) { $this->title = $title; } /** * Return the value of the wrapped string. * * @return string */ public function get_value(): string { return $this->title; } }