/**
  * Segment constructor.
  *
  * @param LVM $lvm
  * @param PV $physicalVolume
  * @param LV $logicalVolume
  * @param int $physicalStart
  * @param int $physicalExtentCount
  * @param int $logicalExtentCount
  * @param int $logicalStart
  * @param string $segmentType
  */
 public function __construct(LVM $lvm, PV $physicalVolume, LV $logicalVolume, $physicalStart, $physicalExtentCount, $logicalExtentCount, $logicalStart, $segmentType)
 {
     $this->lvm = $lvm;
     $this->lvm->segments[] = $this;
     $this->physicalVolume = $physicalVolume;
     $this->physicalVolume->physicalExtents[] = $this;
     $this->logicalVolume = $logicalVolume;
     $this->logicalVolume->segments[] = $this;
     $this->physicalStart = $physicalStart;
     $this->physicalExtentCount = $physicalExtentCount;
     $this->logicalExtentCount = $logicalExtentCount;
     $this->logicalStart = $logicalStart;
     $this->segmentType = $segmentType;
     parent::__construct($lvm, $physicalVolume, $logicalVolume, $physicalStart, $physicalExtentCount, $logicalExtentCount, $logicalStart);
 }
Пример #2
0
 /**
  * Creates a segment instance
  *
  * @param string $marker
  * @param [:int] $data
  */
 public function __construct($marker, $text)
 {
     parent::__construct($marker, null);
     $this->text = $text;
 }
Пример #3
0
 /**
  * Creates a segment instance
  *
  * @param string $marker
  * @param [:var] $data
  */
 public function __construct($marker, $data)
 {
     parent::__construct($marker, NULL);
     $this->data = $data;
 }
Пример #4
0
 /**
  * Creates a segment instance
  *
  * @param string $marker
  * @param xml.dom.Document document
  */
 public function __construct($marker, Document $document)
 {
     parent::__construct($marker, NULL);
     $this->document = $document;
 }