Esempio n. 1
0
 /**
  * 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));
 }
Esempio n. 2
0
 /**
  * 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));
 }