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://flipboxfactory.com/software/hubspot/license
* @link https://www.flipboxfactory.com/software/hubspot/
*/
namespace flipbox\hubspot\criteria;
use flipbox\ember\helpers\ObjectHelper;
use flipbox\hubspot\HubSpot;
* @author Flipbox Factory <[email protected]>
* @since 1.0.0
class ContactListMutator extends ObjectMutator
{
* @param array $config
* @param null $source
* @return mixed
* @throws \yii\base\InvalidConfigException
public function create(array $config = [], $source = null)
$this->prepare($config);
return HubSpot::getInstance()->getResources()->getContactLists()->create($this, $source);
}
public function update(array $config = [], $source = null)
return HubSpot::getInstance()->getResources()->getContactLists()->update($this, $source);
public function delete(array $config = [], $source = null)
return HubSpot::getInstance()->getResources()->getContactLists()->delete($this, $source);
public function upsert(array $config = [], $source = null)
return HubSpot::getInstance()->getResources()->getContactLists()->upsert($this, $source);
* @inheritdoc
protected function prepare(array $criteria = [])
ObjectHelper::populate(
$this,
$criteria
);