<?php
|
|
/*
|
|
* Copyright 2014 Google Inc.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
* use this file except in compliance with the License. You may obtain a copy of
|
|
* the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
* License for the specific language governing permissions and limitations under
|
|
* the License.
|
|
*/
|
|
|
|
namespace Google\Service\Tasks;
|
|
|
|
class Task extends \Google\Collection
|
|
{
|
|
protected $collection_key = 'links';
|
|
public $completed;
|
|
public $deleted;
|
|
public $due;
|
|
public $etag;
|
|
public $hidden;
|
|
public $id;
|
|
public $kind;
|
|
protected $linksType = TaskLinks::class;
|
|
protected $linksDataType = 'array';
|
|
public $notes;
|
|
public $parent;
|
|
public $position;
|
|
public $selfLink;
|
|
public $status;
|
|
public $title;
|
|
public $updated;
|
|
|
|
public function setCompleted($completed)
|
|
{
|
|
$this->completed = $completed;
|
|
}
|
|
public function getCompleted()
|
|
{
|
|
return $this->completed;
|
|
}
|
|
public function setDeleted($deleted)
|
|
{
|
|
$this->deleted = $deleted;
|
|
}
|
|
public function getDeleted()
|
|
{
|
|
return $this->deleted;
|
|
}
|
|
public function setDue($due)
|
|
{
|
|
$this->due = $due;
|
|
}
|
|
public function getDue()
|
|
{
|
|
return $this->due;
|
|
}
|
|
public function setEtag($etag)
|
|
{
|
|
$this->etag = $etag;
|
|
}
|
|
public function getEtag()
|
|
{
|
|
return $this->etag;
|
|
}
|
|
public function setHidden($hidden)
|
|
{
|
|
$this->hidden = $hidden;
|
|
}
|
|
public function getHidden()
|
|
{
|
|
return $this->hidden;
|
|
}
|
|
public function setId($id)
|
|
{
|
|
$this->id = $id;
|
|
}
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
public function setKind($kind)
|
|
{
|
|
$this->kind = $kind;
|
|
}
|
|
public function getKind()
|
|
{
|
|
return $this->kind;
|
|
}
|
|
/**
|
|
* @param TaskLinks[]
|
|
*/
|
|
public function setLinks($links)
|
|
{
|
|
$this->links = $links;
|
|
}
|
|
/**
|
|
* @return TaskLinks[]
|
|
*/
|
|
public function getLinks()
|
|
{
|
|
return $this->links;
|
|
}
|
|
public function setNotes($notes)
|
|
{
|
|
$this->notes = $notes;
|
|
}
|
|
public function getNotes()
|
|
{
|
|
return $this->notes;
|
|
}
|
|
public function setParent($parent)
|
|
{
|
|
$this->parent = $parent;
|
|
}
|
|
public function getParent()
|
|
{
|
|
return $this->parent;
|
|
}
|
|
public function setPosition($position)
|
|
{
|
|
$this->position = $position;
|
|
}
|
|
public function getPosition()
|
|
{
|
|
return $this->position;
|
|
}
|
|
public function setSelfLink($selfLink)
|
|
{
|
|
$this->selfLink = $selfLink;
|
|
}
|
|
public function getSelfLink()
|
|
{
|
|
return $this->selfLink;
|
|
}
|
|
public function setStatus($status)
|
|
{
|
|
$this->status = $status;
|
|
}
|
|
public function getStatus()
|
|
{
|
|
return $this->status;
|
|
}
|
|
public function setTitle($title)
|
|
{
|
|
$this->title = $title;
|
|
}
|
|
public function getTitle()
|
|
{
|
|
return $this->title;
|
|
}
|
|
public function setUpdated($updated)
|
|
{
|
|
$this->updated = $updated;
|
|
}
|
|
public function getUpdated()
|
|
{
|
|
return $this->updated;
|
|
}
|
|
}
|
|
|
|
// Adding a class alias for backwards compatibility with the previous class name.
|
|
class_alias(Task::class, 'Google_Service_Tasks_Task');
|