/**
  * Constructor method for FeatureWithCallerList
  * @param bool $subscribed Flag whether subscribed or not
  * @param bool $active Flag whether active or not
  * @param array $phones
  * @return self
  */
 public function __construct($subscribed, $active, array $phones = [])
 {
     parent::__construct($subscribed, $active);
     $this->setPhones($phones);
     $this->on('before', function (Base $sender) {
         if ($sender->getPhones()->count()) {
             $sender->setChild('phone', $sender->getPhones()->all());
         }
     });
 }
 /**
  * Method returning the xml representation of this class
  *
  * @param  string $name
  * @return SimpleXML
  */
 public function toXml($name = 'voicemailprefs')
 {
     return parent::toXml($name);
 }