WsdlToPhp\PackageGenerator\Model\StructAttribute::isRequired PHP Method

isRequired() public method

Returns true or false depending on minOccurs information associated to the attribute
public isRequired ( ) : boolean
return boolean true|false
    public function isRequired()
    {
        return $this->getMetaValue('use', '') === 'required' || $this->getMetaValueFirstSet(array('minOccurs', 'minoccurs', 'MinOccurs', 'Minoccurs'), false);
    }