/** * Constructs new affinity group object. * * @param array $raw The array representation for affinity group. */ public function __construct($raw = null) { parent::__construct($raw); $this->setName(Utilities::tryGetValue($raw, Resources::XTAG_NAME)); }
/** * Constructs new storage service object. * * @param array $raw The array representation for storage service. */ public function __construct($raw = null) { parent::__construct($raw); $this->setAffinityGroup(Utilities::tryGetValue($raw, Resources::XTAG_AFFINITY_GROUP)); $this->setName(Utilities::tryGetValue($raw, Resources::XTAG_SERVICE_NAME)); }