galleryBehavior = $galleryBehavior; $this->name = isset($props['name']) ? $props['name'] : ''; $this->description = isset($props['description']) ? $props['description'] : ''; $this->id = isset($props['id']) ? $props['id'] : ''; $this->rank = isset($props['rank']) ? $props['rank'] : ''; $this->type = isset($props['type']) ? $props['type'] : ''; } /** * @param string $version * * @return string */ public function getUrl($version) { return $this->galleryBehavior->getUrl($this->id, $version); } }