public function setEngine($engine)
    {
        if (!$this->engine instanceof Edge) {
            throw new \InvalidArgumentException('Engine should be instance of Edge');
        }

        $this->engine = $engine;

        return $this;
    }
public function setEngine($engine)
    {
        if (!$this->engine instanceof Edge) {
            throw new \InvalidArgumentException('Engine should be instance of Edge');
        }

        $this->engine = $engine;

        return $this;
    }
public function setEngine ( $ engine ) { if ( ! $ this -> engine instanceof Edge ) { throw new \ InvalidArgumentException ( 'Engine should be instance of Edge' ) ; } $ this -> engine = $ engine ; return $ this ; }
Method to set property engine

@param   Edge $engine

@return  static  Return self to support chaining.
Method to set property engine