From b6450ed975565773a2dc1f6f19a46c6b436094db 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 1/1] 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.1