for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Helix\Asana\Base\AbstractEntity;
use Helix\Asana\Base\AbstractEntity;
use Helix\Asana\Event;
/**
* Adds event syncing to entities.
*
* @mixin AbstractEntity
*/
trait SyncTrait {
* Events since the last sync.
* @depends after-create
* @param null|string $token
* @return Event[]
public function getEvents (?string &$token) {
return $this->api->sync($this->getGid(), $token);
}