src/Entities/Badge.php
public function parse($badge)
    {
        if (isset($badge['badgeIndex'])) {
            $this->setBadgeIndex($badge['badgeIndex']);
        }
        $this->setCode($badge['code']);
        $this->setName($badge['name']);
        $this->setDescription($badge['description']);
    }
public function parse($badge)
    {
        if (isset($badge['badgeIndex'])) {
            $this->setBadgeIndex($badge['badgeIndex']);
        }
        $this->setCode($badge['code']);
        $this->setName($badge['name']);
        $this->setDescription($badge['description']);
    }
public function parse ( $ badge ) { if ( isset ( $ badge [ 'badgeIndex' ] ) ) { $ this -> setBadgeIndex ( $ badge [ 'badgeIndex' ] ) ; } $ this -> setCode ( $ badge [ 'code' ] ) ; $ this -> setName ( $ badge [ 'name' ] ) ; $ this -> setDescription ( $ badge [ 'description' ] ) ; }
Parses badge info array to Badge object
@param array $badge
Parses badge info array to Badge object