From 9cf94c26533fea15204fd2264e9c575159aa78f0 Mon Sep 17 00:00:00 2001 From: Pen-y-Fan <40126936+Pen-y-Fan@users.noreply.github.com> Date: Mon, 18 May 2020 22:50:05 +0100 Subject: [PATCH] PHP7.2+ compatible strict types and type hinting --- php/src/Invoice.php | 18 +++++++++++++----- php/src/Performance.php | 24 +++++++++++++++++++----- php/src/Play.php | 19 ++++++++++++++----- 3 files changed, 46 insertions(+), 15 deletions(-) diff --git a/php/src/Invoice.php b/php/src/Invoice.php index 6b5d82c..596945f 100644 --- a/php/src/Invoice.php +++ b/php/src/Invoice.php @@ -1,16 +1,24 @@ customer = $customer; $this->performances = $performances; } - -} \ No newline at end of file +} diff --git a/php/src/Performance.php b/php/src/Performance.php index c0fb631..fb97997 100644 --- a/php/src/Performance.php +++ b/php/src/Performance.php @@ -1,15 +1,29 @@ play_id = $play_id; $this->audience = $audience; } -} \ No newline at end of file +} diff --git a/php/src/Play.php b/php/src/Play.php index 7e90416..a6e758a 100644 --- a/php/src/Play.php +++ b/php/src/Play.php @@ -1,13 +1,22 @@ name = $name; $this->type = $type; @@ -17,4 +26,4 @@ class Play { return (string) $this->name . ' : ' . $this->type; } -} \ No newline at end of file +}