From 99486140bf291f216a3129387dfb8d619d8e5f51 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Sun, 2 Jan 2022 11:41:08 +0100 Subject: [PATCH] Remove constructor from member and memberships --- src/Member.php | 4 ---- src/Membership.php | 4 ---- tests/Unit/LoginTest.php | 4 ++-- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/Member.php b/src/Member.php index 91f7821..e802e61 100644 --- a/src/Member.php +++ b/src/Member.php @@ -105,10 +105,6 @@ class Member extends Model { ]; } - public function __construct($member) { - parent::__construct($member); - } - public function getBirthdayAttribute() { return Carbon::parse($this->attributes['birthday'])->format('Y-m-d'); } diff --git a/src/Membership.php b/src/Membership.php index d5eae8c..a952e8c 100644 --- a/src/Membership.php +++ b/src/Membership.php @@ -40,10 +40,6 @@ class Membership extends Model { return (new self($item)); } - public function __construct($membership) { - parent::__construct($membership); - } - public function setAttribute($key, $value) { if (in_array($key, $this->nullable) && $value === '') { return parent::setAttribute($key, null); diff --git a/tests/Unit/LoginTest.php b/tests/Unit/LoginTest.php index 0740c8b..0cfd524 100644 --- a/tests/Unit/LoginTest.php +++ b/tests/Unit/LoginTest.php @@ -2,10 +2,10 @@ namespace Zoomyboy\LaravelNami\Tests\Unit; -use Zoomyboy\LaravelNami\Nami; -use Zoomyboy\LaravelNami\Tests\TestCase; use Illuminate\Support\Facades\Http; use Zoomyboy\LaravelNami\LoginException; +use Zoomyboy\LaravelNami\Nami; +use Zoomyboy\LaravelNami\Tests\TestCase; class LoginTest extends TestCase {