public function setSpan($span)
    {
        if (is_int($span) === true && $span > 0) {
            $this->span = $span;
        } else {
            $msg = "The 'span' attribute must be a strictly positive (> 0) integer, '" . gettype($span) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setSpan($span)
    {
        if (is_int($span) === true && $span > 0) {
            $this->span = $span;
        } else {
            $msg = "The 'span' attribute must be a strictly positive (> 0) integer, '" . gettype($span) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setSpan ( $ span ) { if ( is_int ( $ span ) === true && $ span > 0 ) { $ this -> span = $ span ; } else { $ msg = "The 'span' attribute must be a strictly positive (> 0) integer, '" . gettype ( $ span ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the span attribute.

@param integer $span A strictly positive integer.
@throws \InvalidArgumentException If $span is not a positive integer.
Set the span attribute .