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\CompanyContacts;
use Psr\Http\Message\ResponseInterface;
* @author Flipbox Factory <[email protected]>
* @since 2.0.0
class CompanyContactsMutatorCriteria extends AbstractCriteria
{
use ConnectionTrait,
CacheTrait;
* @var string
public $companyId;
public $contactId;
* @return string
public function getCompanyId(): string
return (string)$this->companyId;
}
public function getContactId(): string
return (string)$this->contactId;
* @param array $criteria
* @param array $config
* @return ResponseInterface
public function add(array $criteria = [], array $config = []): ResponseInterface
$this->populate($criteria);
return CompanyContacts::add(
$this->getCompanyId(),
$this->getContactId(),
$this->getConnection(),
$this->getCache(),
$this->getLogger(),
$config
);
public function remove(array $criteria = [], array $config = []): ResponseInterface
return CompanyContacts::remove(