add priority
This commit is contained in:
27
src/Task.php
27
src/Task.php
@@ -14,6 +14,10 @@ class Task
|
||||
const STATUS_DELETED = 'deleted';
|
||||
const STATUS_WAITING = 'waiting';
|
||||
|
||||
const PRIORITY_LOW = 'L';
|
||||
const PRIORITY_MEDIUM = 'M';
|
||||
const PRIORITY_HIGH = 'H';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
@@ -28,6 +32,13 @@ class Task
|
||||
*/
|
||||
private $description;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @JMS\Type(name="string")
|
||||
*/
|
||||
private $priority;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
@@ -97,6 +108,22 @@ class Task
|
||||
$this->description = $description;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPriority()
|
||||
{
|
||||
return $this->priority;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $priority
|
||||
*/
|
||||
public function setPriority($priority)
|
||||
{
|
||||
$this->priority = $priority;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
|
Reference in New Issue
Block a user