for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Helix\Asana\Task;
use Helix\Asana\Base\Data;
use Helix\Asana\Task;
/**
* Custom task data.
*
* @see https://developers.asana.com/docs/custom-external-data
* @method null|string getGid ()
* @method bool hasGid ()
* @method $this setGid (null|string $gid) 1024 chars max.
* @method null|string getData ()
* @method bool hasData ()
* @method $this setData (null|string $data) 32768 chars max.
*/
class External extends Data {
* @var Task
protected $task;
public function __construct (Task $task, array $data = []) {
parent::__construct($task, $data);
$this->task = $task;
}
* Marks the task's `external` diff.
* @param string $key
* @param mixed $value
* @return $this
protected function _set (string $key, $value) {
$this->task->diff['external'] = true;
return parent::_set($key, $value);