Liip\RMT\Version\Generator\SemanticGenerator::getInformationRequests PHP Method

getInformationRequests() public method

    public function getInformationRequests()
    {
        $ir = array();
        // Ask the type if it's not forced
        if (!isset($this->options['type'])) {
            $ir[] = 'type';
        }
        // Ask the label if it's allow and not forced
        if (isset($this->options['allow-label']) && $this->options['allow-label'] == true && !isset($this->options['label'])) {
            $ir[] = 'label';
        }
        return $ir;
    }