public function setAgent(AgentContract $agent = null)
    {
        if (!$agent) {
            $agent = new Agents\SystemAgent();
        }

        $this->agent = $agent;

        return $this;
    }
public function setAgent(AgentContract $agent = null)
    {
        if (!$agent) {
            $agent = new Agents\SystemAgent();
        }

        $this->agent = $agent;

        return $this;
    }
public function setAgent ( AgentContract $ agent = null ) { if ( ! $ agent ) { $ agent = new Agents \ SystemAgent ( ) ; } $ this -> agent = $ agent ; return $ this ; }
set agent.

@param AgentContract $agent

@return $this
set agent .