/** * Constructs new affinity group object. */ public function __construct() { $sources = func_get_args(); parent::__construct($sources); foreach ($sources as $source) { $this->setName(Utilities::tryGetValue($source, Resources::XTAG_NAME, $this->getName())); } }
/** * Constructs new storage service object. * * @param array $sources The list of sources that has the row XML. */ public function __construct($sources = array()) { parent::__construct($sources); foreach ($sources as $source) { $this->setName(Utilities::tryGetValue($source, Resources::XTAG_SERVICE_NAME, $this->getName())); $this->setAffinityGroup(Utilities::tryGetValue($source, Resources::XTAG_AFFINITY_GROUP, $this->getAffinityGroup())); $this->setUrl(Utilities::tryGetValue($source, Resources::XTAG_URL, $this->getUrl())); } }