From 0a1451a2d6fd431123e3deab886057a56dbdf1b4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 11 Dec 2019 05:24:37 +0100 Subject: [PATCH] Add short field and related methods Add __toString magic method Cleanup --- Entity/Title.php | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/Entity/Title.php b/Entity/Title.php index 54a6a60..e6cc9e8 100644 --- a/Entity/Title.php +++ b/Entity/Title.php @@ -1,7 +1,41 @@ short = $short; + + return $this; + } + + /** + * Get short + * + * @return string + */ + public function getShort() { + return $this->short; + } + + /** + * Returns a string representation of the title + * + * @return string + */ + public function __toString(): string { + return $this->short; + } } -- 2.41.0