Task Class ========== .. php:class:: Task Represents a Task in a User Journey :php:class:`Section` .. php:method:: __construct(string $name, int $score, bool $sort = false) Creates a new task :param string $name: The task name :param int $score: The task score. 1 <= $score <= 5 :returns: A new instance of ``Task`` :rtype: Task .. php:method:: addActor(Actor ...$actor) Add actor(s) :param Actor ...$actor: The actor(s) :returns: A new instance of ``Task`` with the actor(s) added :rtype: Task .. php:method:: withComment(string $comment) Add a comment :param string $comment: The comment :returns: A new instance of ``Task`` with the comment :rtype: Task .. php:method:: withActor(Actor ...$actor) Set actor(s) :param Actor ...$actor: The actor(s) :returns: A new instance of ``Task`` with the actor(s) :rtype: Task .. php:method:: withSortActors() Enable sorting the actors Default is to render the actors in the order added :param Actor ...$actor: The actor(s) :returns: A new instance of ``Task`` that will sort the actors :rtype: Task