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\Client;
use Flipbox\Relay\HubSpot\Middleware\Companies\UpdateById as CompanyUpdateByIdMiddleware;
use Flipbox\Relay\HubSpot\Middleware\JsonRequest as JsonRequestMiddleware;
use Flipbox\Relay\Segments\AbstractSegment;
class UpdateById extends AbstractSegment
{
/**
* @var int
*/
public $id;
* @var string
public $properties;
* @return array
protected function defaultSegments(): array
return [
'body' => [
'class' => JsonRequestMiddleware::class,
'payload' => $this->properties,
'logger' => $this->getLogger()
],
'uri' => [
'class' => CompanyUpdateByIdMiddleware::class,
'id' => $this->id,
'client' => [
'class' => Client::class,
]
];
}