public function setNodeB($package)
    {
        $this->set('nodeB', $package);
        $this->set('endDate', clone $this->startDate);
        $this->endDate->addSeconds($package->duration);

        return $this;
    }
public function setNodeB($package)
    {
        $this->set('nodeB', $package);
        $this->set('endDate', clone $this->startDate);
        $this->endDate->addSeconds($package->duration);

        return $this;
    }
public function setNodeB ( $ package ) { $ this -> set ( 'nodeB' , $ package ) ; $ this -> set ( 'endDate' , clone $ this -> startDate ) ; $ this -> endDate -> addSeconds ( $ package -> duration ) ; return $ this ; }
Set the subscription package.

@param ComSubscriptionsDomainEntityPackageDefault $package Package

@return ComSubscriptionsDomainEntitySubscription object
Set the subscription package .