Pantheon\Terminus\Models\Backup::getInitiator PHP Method

getInitiator() public method

Returns the type of initiator of the backup
public getInitiator ( ) : string
return string Either "manual" or "automated"
    public function getInitiator()
    {
        preg_match("/.*_(.*)/", $this->get('folder'), $automation_match);
        return isset($automation_match[1]) && $automation_match[1] == 'automated' ? 'automated' : 'manual';
    }