SassList::getValue PHP 메소드

getValue() 공개 메소드

Returns the value of this boolean.
public getValue ( ) : boolean
리턴 boolean the value of this boolean
    public function getValue()
    {
        $result = array();
        foreach ($this->value as $k => $v) {
            if ($v instanceof SassString) {
                $list = $this->_parse_list($v);
                if (count($list[0]) > 1) {
                    if ($list[1] == $this->separator) {
                        $result = array_merge($result, $list[0]);
                    } else {
                        $result[] = $v;
                    }
                } else {
                    $result[] = $v;
                }
            } else {
                $result[] = $v;
            }
        }
        $this->value = $result;
        return $this->value;
    }