public function codes($variable)
    {
        foreach ($this->keywordList('CODES') as $keyword) {
            if ($keyword->subKeys[0] == $variable) {
                return $keyword->values;
            }
        }

        return null;
    }
public function codes($variable)
    {
        foreach ($this->keywordList('CODES') as $keyword) {
            if ($keyword->subKeys[0] == $variable) {
                return $keyword->values;
            }
        }

        return null;
    }
public function codes ( $ variable ) { foreach ( $ this -> keywordList ( 'CODES' ) as $ keyword ) { if ( $ keyword -> subKeys [ 0 ] == $ variable ) { return $ keyword -> values ; } } return null ; }
Returns a list of all possible codes of a variable.

@param string $variable

@return array|null
Returns a list of all possible codes of a variable .