src/Parser.php
public function fromXSD($xsd): array
    {
        if (!$this->isEmptyValue($xsd)) {
            return $this->fromXml($xsd->output);
        }

        return $this->result;

    }
public function fromXSD($xsd): array
    {
        if (!$this->isEmptyValue($xsd)) {
            return $this->fromXml($xsd->output);
        }

        return $this->result;

    }
public function fromXSD ( $ xsd ) : array { if ( ! $ this -> isEmptyValue ( $ xsd ) ) { return $ this -> fromXml ( $ xsd -> output ) ; } return $ this -> result ; }
Convert class to array

@param $xsd
@return array|mixed
Convert class to array