function Location::setSpan
Always has exactly three or four elements: start line, start column, end line (optional, otherwise assumed same as start line), end column. These are packed into a single field for efficiency. Note that line and column numbers are zero-based -- typically you will want to add 1 to each before displaying to a user.
Generated from protobuf field <code>repeated int32 span = 2 [packed = true];</code>
Parameters
array<int>|\Google\Protobuf\Internal\RepeatedField $var:
Return value
$this
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ SourceCodeInfo/ Location.php, line 276
Class
- Location
- Generated from protobuf message <code>google.protobuf.SourceCodeInfo.Location</code>
Namespace
Google\Protobuf\Internal\SourceCodeInfoCode
public function setSpan($var) {
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
$this->span = $arr;
return $this;
}