for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace DPD\Interconnector\Request;
use DPD\Interconnector\Authentication;
class ManifestRequest implements RequestInterface
{
public function __construct(Authentication $authentication, \DateTime $date)
$this->authentication = $authentication;
authentication
$this->date = $date;
date
}
public function toArray(): array
return array_merge(
$this->authentication->toArray(),
['date' => $this->date->format("Y-m-d")]
);
public function getCountry(): string
return $this->authentication->country;