public function register()
    {
        $pest   = new Pest( "http://" . $this->bridge . "/api" );
        $data   = json_encode( array( 'devicetype' => 'phpHue' ) );
        $result = $pest->post( '', $data );

        return $result;
    }
public function register()
    {
        $pest   = new Pest( "http://" . $this->bridge . "/api" );
        $data   = json_encode( array( 'devicetype' => 'phpHue' ) );
        $result = $pest->post( '', $data );

        return $result;
    }
public function register ( ) { $ pest = new Pest ( "http://" . $ this -> bridge . "/api" ) ; $ data = json_encode ( array ( 'devicetype' => 'phpHue' ) ) ; $ result = $ pest -> post ( '' , $ data ) ; return $ result ; }
Registers with a Hue hub
Registers with a Hue hub