public function update($subscription){
        if(!isset($this->_id) || null == $this->_id){
            throw new \Exception("You must especify an Id to perform subscription updates");
        }
        if($subscription instanceof SubscriptionFactory){
            $context = new ContextFactory((array) $subscription->get());
        }elseif(is_array($subscription) || is_object($subscription)){
            $context = new ContextFactory((array)$subscription);
        }
        return $this->_orion->patch($this->getBaseURI(), $context);
    }
public function update($subscription){
        if(!isset($this->_id) || null == $this->_id){
            throw new \Exception("You must especify an Id to perform subscription updates");
        }
        if($subscription instanceof SubscriptionFactory){
            $context = new ContextFactory((array) $subscription->get());
        }elseif(is_array($subscription) || is_object($subscription)){
            $context = new ContextFactory((array)$subscription);
        }
        return $this->_orion->patch($this->getBaseURI(), $context);
    }
public function update ( $ subscription ) { if ( ! isset ( $ this -> _id ) || null == $ this -> _id ) { throw new \ Exception ( "You must especify an Id to perform subscription updates" ) ; } if ( $ subscription instanceof SubscriptionFactory ) { $ context = new ContextFactory ( ( array ) $ subscription -> get ( ) ) ; } elseif ( is_array ( $ subscription ) || is_object ( $ subscription ) ) { $ context = new ContextFactory ( ( array ) $ subscription ) ; } return $ this -> _orion -> patch ( $ this -> getBaseURI ( ) , $ context ) ; }
Update a subscription, you can pass a simple array chain in subscription know format
or you can send a instance of SubscriptionFactory
@param \Orion\Context\SubscriptionFactory|array $subscription
@return type
@throws \Exception
Update a subscription you can pass a simple array chain in subscription know format or you can send a instance of SubscriptionFactory