app\models\Task::hasPreviousDuration PHP Method