Last active
December 20, 2018 12:15
Revisions
-
thiagomarini revised this gist
Dec 20, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ <?php namespace Weengs\Services\Merchant\Onboarding\RequestPhoneCall; use Weengs\Models\User\User; use Weengs\Services\Common\BaseServiceResponse; -
thiagomarini revised this gist
Dec 18, 2018 . 1 changed file with 2 additions and 10 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,31 +2,23 @@ namespace Weengs\Services\Merchant\Onboarding\RequestCall; use Weengs\Models\User\User; use Weengs\Services\Common\BaseServiceResponse; class Response extends BaseServiceResponse { /** * @var User */ private $user; /** * @param User $user */ public function __construct(User $user) { parent::__construct(); $this->user = $user; } @@ -36,7 +28,7 @@ public function __construct(Onboarding $onboarding, User $user) public function getData(): array { $response = [ 'onboarding' => $this->user->onboarding->toResource(), 'user' => $this->user->toResource() ]; -
thiagomarini created this gist
Dec 6, 2018 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,45 @@ <?php namespace Weengs\Services\Merchant\Onboarding\RequestCall; use Weengs\Models\User\Onboarding; use Weengs\Models\User\User; use Weengs\Services\Common\BaseServiceResponse; class Response extends BaseServiceResponse { /** * @var Onboarding */ private $onboarding; /** * @var User */ private $user; /** * @param Onboarding $onboarding * @param User $user */ public function __construct(Onboarding $onboarding, User $user) { parent::__construct(); $this->onboarding = $onboarding; $this->user = $user; } /** * @return array */ public function getData(): array { $response = [ 'onboarding' => $this->onboarding->toResource(), 'user' => $this->user->toResource() ]; return $response; } }