for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Pin\Charge;
use Pin\RequestInterface;
use Symfony\Component\OptionsResolver\Exception\InvalidOptionsException;
class Retrieve implements RequestInterface
{
protected $token;
public function __construct($token)
if (!is_string($token)) {
throw new InvalidOptionsException('The first argument is expected to be of type "string"');
}
$this->token = $token;
/**
* {@inheritdoc}
*/
public function getMethod()
return self::METHOD_GET;
public function getPath()
return sprintf('/1/charges/%s', $this->token);
public function getData()
return array();