Wrap text
Report abuse
getData($this->getArgument() );
if (!is_array($value) )
{
$this->throwError();
return false;
}
$size = count($value);
if ($this->hasParameter('min') )
{
if ($size < $this->getParameter('min') )
{
$this->throwError('min');
return false;
}
}
if ($this->hasParameter('max') )
{
if ($size > $this->getParameter('max') )
{
$this->throwError('max');
return false;
}
}
return true;
}
}
?>