for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Flipbox\Relay\HubSpot\Segment\Companies;
use Flipbox\Relay\HubSpot\Middleware\Companies\AddContact as AddContactMiddleware;
use Flipbox\Relay\HubSpot\Middleware\Client;
use Flipbox\Relay\Segments\AbstractSegment;
class AddContact extends AbstractSegment
{
/**
* @var int
*/
public $id;
public $contactId;
* @return array
protected function defaultSegments(): array
return [
'uri' => [
'class' => AddContactMiddleware::class,
'id' => $this->id,
'contactId' => $this->contactId,
'logger' => $this->getLogger()
],
'client' => [
'class' => Client::class,
]
];
}