From: Raphaƫl Gertz Date: Wed, 11 Dec 2019 04:24:37 +0000 (+0100) Subject: Add short field and related methods X-Git-Tag: 0.1.1~40 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/b6450ed975565773a2dc1f6f19a46c6b436094db Add short field and related methods Add __toString magic method Cleanup --- 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; + } }