src/Entities/Group.php
public function parse($group)
    {
        $this->setId($group['id']);
        $this->setName($group['name']);
        $this->setDescription($group['description']);
        $this->setType($group['type']);
        if (isset($group['primaryColour'])) {
            $this->setPrimaryColour($group['primaryColour']);
        }
        if (isset($group['secondaryColour'])) {
            $this->setSecondaryColour($group['secondaryColour']);
        }
        if (isset($group['badgeCode'])) {
            $this->setBadgeCode($group['badgeCode']);
        }
        if (isset($group['roomId'])) {
            $this->setRoomId($group['roomId']);
        }
        if (isset($group['isAdmin'])) {
            $this->setIsAdmin($group['isAdmin']);
        }
    }
public function parse($group)
    {
        $this->setId($group['id']);
        $this->setName($group['name']);
        $this->setDescription($group['description']);
        $this->setType($group['type']);
        if (isset($group['primaryColour'])) {
            $this->setPrimaryColour($group['primaryColour']);
        }
        if (isset($group['secondaryColour'])) {
            $this->setSecondaryColour($group['secondaryColour']);
        }
        if (isset($group['badgeCode'])) {
            $this->setBadgeCode($group['badgeCode']);
        }
        if (isset($group['roomId'])) {
            $this->setRoomId($group['roomId']);
        }
        if (isset($group['isAdmin'])) {
            $this->setIsAdmin($group['isAdmin']);
        }
    }
public function parse ( $ group ) { $ this -> setId ( $ group [ 'id' ] ) ; $ this -> setName ( $ group [ 'name' ] ) ; $ this -> setDescription ( $ group [ 'description' ] ) ; $ this -> setType ( $ group [ 'type' ] ) ; if ( isset ( $ group [ 'primaryColour' ] ) ) { $ this -> setPrimaryColour ( $ group [ 'primaryColour' ] ) ; } if ( isset ( $ group [ 'secondaryColour' ] ) ) { $ this -> setSecondaryColour ( $ group [ 'secondaryColour' ] ) ; } if ( isset ( $ group [ 'badgeCode' ] ) ) { $ this -> setBadgeCode ( $ group [ 'badgeCode' ] ) ; } if ( isset ( $ group [ 'roomId' ] ) ) { $ this -> setRoomId ( $ group [ 'roomId' ] ) ; } if ( isset ( $ group [ 'isAdmin' ] ) ) { $ this -> setIsAdmin ( $ group [ 'isAdmin' ] ) ; } }
Parses group info array to \Entities\Group object

@param array $group
Parses group info array to \ Entities \ Group object