setSrid() public method

public setSrid ( mixed $srid ) : self
$srid mixed
return self
 /**
  * {@inheritdoc}
  */
 public function convertToDatabaseValue(AbstractGeometry $value)
 {
     if (!$value instanceof GeographyInterface) {
         throw InvalidValueException::invalidValueNotGeography();
     }
     if ($value->getSrid() === null) {
         $value->setSrid(self::DEFAULT_SRID);
     }
     return sprintf('SRID=%d;%s(%s)', $value->getSrid(), strtoupper($value->getType()), $value);
 }