app\models\Task::getLastStartTime PHP Method

getLastStartTime() public method

public getLastStartTime ( )
    public function getLastStartTime()
    {
        $parts = json_decode($this->time_log) ?: [];
        if (count($parts)) {
            $index = count($parts) - 1;
            return $parts[$index][0];
        } else {
            return '';
        }
    }