MyBuilder\Package\ToDo\Task::getTitle PHP Метод

getTitle() публичный Метод

public getTitle ( )
    public function getTitle()
    {
        return $this->title;
    }

Usage Example

 public function store(Task $task)
 {
     $tasks = $this->fetchTaskJson();
     $tasks[] = array('title' => $task->getTitle(), 'description' => $task->getDescription());
     file_put_contents($this->filePath, json_encode($tasks));
 }