getMaxOccurs() public method

return max occurs.
public getMaxOccurs ( ) : integer
return integer
Exemplo n.º 1
0
 /**
  * return max occurs.
  *
  * @return int
  */
 public function getMaxOccurs()
 {
     return $this->property->getMaxOccurs();
 }
Exemplo n.º 2
0
 /**
  * Return true if property is an array and needs an add button.
  *
  * @param $property PropertyInterface
  *
  * @return bool
  */
 public function needsAddButtonFunction(PropertyInterface $property)
 {
     return $property->getMaxOccurs() > $property->getMinOccurs();
 }