public function getInitiator() { preg_match("/.*_(.*)/", $this->get('folder'), $automation_match); return isset($automation_match[1]) && $automation_match[1] == 'automated' ? 'automated' : 'manual'; }