public function setProcessSupervisor(ProcessSupervisor $processSupervisor): void
    {
        if ($this->processSupervisor !== null) {
            throw new RuntimeException('The process supervisor has already been set.');
        }

        $this->processSupervisor = $processSupervisor;
    }
public function setProcessSupervisor(ProcessSupervisor $processSupervisor): void
    {
        if ($this->processSupervisor !== null) {
            throw new RuntimeException('The process supervisor has already been set.');
        }

        $this->processSupervisor = $processSupervisor;
    }
public function setProcessSupervisor ( ProcessSupervisor $ processSupervisor ) : void { if ( $ this -> processSupervisor !== null ) { throw new RuntimeException ( 'The process supervisor has already been set.' ) ; } $ this -> processSupervisor = $ processSupervisor ; }
Set the process supervisor.

@throws \RuntimeException if the process supervisor has already been set.
Set the process supervisor .