예제 #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));
 }
예제 #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));
 }