From 88cf5c0d20dfdb3eb3bb79085b8a4c86dfd76ea3 Mon Sep 17 00:00:00 2001 From: Craig Paul Date: Wed, 19 Oct 2016 14:41:26 -0600 Subject: [PATCH] Adds settable functionality through __set --- src/Settable.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/Settable.php diff --git a/src/Settable.php b/src/Settable.php new file mode 100644 index 0000000..1c2a9c7 --- /dev/null +++ b/src/Settable.php @@ -0,0 +1,23 @@ +$property = $value; + } else { + throw new \InvalidArgumentException('['.get_class($this).'] does not contain a property named ['.$property.']'); + } + } +} \ No newline at end of file