public function doFromObject($sourceObject, KalturaDetachedResponseProfile $responseProfile = null) { if (!$sourceObject) { return; } parent::doFromObject($sourceObject, $responseProfile); if ($this->shouldGet('dimensions', $responseProfile)) { $data = $sourceObject->getData(); $matches = null; if (preg_match('/(\\d+)x(\\d+)/', $data, $matches)) { $this->dimensions = new KalturaDistributionThumbDimensions(); $this->dimensions->width = $matches[1]; $this->dimensions->height = $matches[2]; } } }