src/Entities/Room.php
public function parse($room)
    {
        $this->setId($room['id']);
        $this->setUniqueId($room['uniqueId']);
        $this->setName($room['name']);
        $this->setDescription($room['description']);
        $this->setMaximumVisitors($room['maximumVisitors']);
        $this->setTags($room['tags']);
        $this->setShowOwnerName($room['showOwnerName']);
        $this->setOwnerName($room['ownerName']);
        $this->setOwnerUniqueId($room['ownerUniqueId']);
        $this->setCategories($room['categories']);
        $this->setThumbnailUrl($room['thumbnailUrl']);
        $this->setImageUrl($room['imageUrl']);
        $this->setRating($room['rating']);

        if (isset($room['creationTime'])) {
            $this->setCreationTime($room['creationTime']);
        }

        if (isset($room['habboGroupId'])) {
            $this->setGroupId($room['habboGroupId']);
        }
    }
public function parse($room)
    {
        $this->setId($room['id']);
        $this->setUniqueId($room['uniqueId']);
        $this->setName($room['name']);
        $this->setDescription($room['description']);
        $this->setMaximumVisitors($room['maximumVisitors']);
        $this->setTags($room['tags']);
        $this->setShowOwnerName($room['showOwnerName']);
        $this->setOwnerName($room['ownerName']);
        $this->setOwnerUniqueId($room['ownerUniqueId']);
        $this->setCategories($room['categories']);
        $this->setThumbnailUrl($room['thumbnailUrl']);
        $this->setImageUrl($room['imageUrl']);
        $this->setRating($room['rating']);

        if (isset($room['creationTime'])) {
            $this->setCreationTime($room['creationTime']);
        }

        if (isset($room['habboGroupId'])) {
            $this->setGroupId($room['habboGroupId']);
        }
    }
public function parse ( $ room ) { $ this -> setId ( $ room [ 'id' ] ) ; $ this -> setUniqueId ( $ room [ 'uniqueId' ] ) ; $ this -> setName ( $ room [ 'name' ] ) ; $ this -> setDescription ( $ room [ 'description' ] ) ; $ this -> setMaximumVisitors ( $ room [ 'maximumVisitors' ] ) ; $ this -> setTags ( $ room [ 'tags' ] ) ; $ this -> setShowOwnerName ( $ room [ 'showOwnerName' ] ) ; $ this -> setOwnerName ( $ room [ 'ownerName' ] ) ; $ this -> setOwnerUniqueId ( $ room [ 'ownerUniqueId' ] ) ; $ this -> setCategories ( $ room [ 'categories' ] ) ; $ this -> setThumbnailUrl ( $ room [ 'thumbnailUrl' ] ) ; $ this -> setImageUrl ( $ room [ 'imageUrl' ] ) ; $ this -> setRating ( $ room [ 'rating' ] ) ; if ( isset ( $ room [ 'creationTime' ] ) ) { $ this -> setCreationTime ( $ room [ 'creationTime' ] ) ; } if ( isset ( $ room [ 'habboGroupId' ] ) ) { $ this -> setGroupId ( $ room [ 'habboGroupId' ] ) ; } }
Parses room info array to \Entities\Room object

@param array $room
Parses room info array to \ Entities \ Room object