for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @copyright Copyright (c) Flipbox Digital Limited
* @license https://github.com/flipbox/hubspot/blob/master/LICENSE.md
* @link https://github.com/flipbox/hubspot
*/
namespace Flipbox\HubSpot\Criteria;
use Flipbox\HubSpot\Resources\TimelineEvent;
use Psr\Http\Message\ResponseInterface;
* @author Flipbox Factory <[email protected]>
* @since 2.0.0
class TimelineEventAccessor extends AbstractCriteria
{
use IntegrationConnectionTrait,
CacheTrait;
* The event Id
*
* @var string
public $id;
* The event type Id
public $typeId;
* @return string
public function getTypeId(): string
return $this->typeId;
}
public function getId(): string
return (string)$this->id;
* @param array $criteria
* @param array $config
* @return ResponseInterface
public function read(array $criteria = [], array $config = []): ResponseInterface
$this->populate($criteria);
return TimelineEvent::read(
$this->getId(),
$this->getTypeId(),
$this->getConnection(),
$this->getCache(),
$this->getLogger(),
$config
);