Skip to content

Instantly share code, notes, and snippets.

@viniciusss
Created January 6, 2017 11:22
Show Gist options
  • Save viniciusss/a2ec145759692902b323074dbad294d7 to your computer and use it in GitHub Desktop.
Save viniciusss/a2ec145759692902b323074dbad294d7 to your computer and use it in GitHub Desktop.
<?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