Created
January 6, 2017 11:22
-
-
Save viniciusss/a2ec145759692902b323074dbad294d7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 characters
<?php | |
class Response | |
{ | |
protected $data; | |
protected $originalResponse; | |
} | |
class Client | |
{ | |
protected $guzzle; | |
public function __construct($guzzle) | |
{ | |
$this->guzzle = $guzzle; | |
} | |
public function post(stdClass $data) | |
{ | |
return true; | |
} | |
} | |
class EnvioPessoaJuridica | |
{ | |
protected $client; | |
public function __construct(Client $client) | |
{ | |
} | |
public function create(PessoaJuridica $pessoa) | |
{ | |
$this->client->post($pessoa); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment