aboutsummaryrefslogtreecommitdiff
path: root/classes/Contact.php
diff options
context:
space:
mode:
authorCamil Staps2016-08-01 09:15:36 +0200
committerCamil Staps2016-08-01 09:15:36 +0200
commit923aac957cc28723c622570d46d2a915c75df06f (patch)
treee4c6a3683f0f0781ed9545feb922e41a2e8d1e8b /classes/Contact.php
parentInternationalisation: email subjects (diff)
Removed duplicate code
Diffstat (limited to 'classes/Contact.php')
-rw-r--r--classes/Contact.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/Contact.php b/classes/Contact.php
index 4a82ade..7689ef7 100644
--- a/classes/Contact.php
+++ b/classes/Contact.php
@@ -26,7 +26,7 @@
*/
class Contact extends Model {
/** {@inheritDoc} */
- public
+ public static
$table = 'contact',
$fillable_columns = ['clientId', 'name', 'email', 'address', 'address_2', 'postal_code', 'city', 'country', 'language'];
@@ -35,7 +35,7 @@ class Contact extends Model {
* @param $key {@inheritDoc}
* @param $value {@inheritDoc}
*/
- protected function mutator($key, $value) {
+ protected static function mutator($key, $value) {
switch ($key) {
case 'language':
if (!in_array($value, Correspondence::LANGUAGES)) {