src/Charcoal/Admin/Widget/MapWidget.php
public function setLat($coord)
    {
        if ($coord === null) {
            $this->lat = $coord;
            return $this;
        }

        if (!is_numeric($coord)) {
            throw new InvalidArgumentException(
                'The "lat" must be a number'
            );
        }

        $this->lat = (float)$coord;

        return $this;
    }
public function setLat($coord)
    {
        if ($coord === null) {
            $this->lat = $coord;
            return $this;
        }

        if (!is_numeric($coord)) {
            throw new InvalidArgumentException(
                'The "lat" must be a number'
            );
        }

        $this->lat = (float)$coord;

        return $this;
    }
public function setLat ( $ coord ) { if ( $ coord === null ) { $ this -> lat = $ coord ; return $ this ; } if ( ! is_numeric ( $ coord ) ) { throw new InvalidArgumentException ( 'The "lat" must be a number' ) ; } $ this -> lat = ( float ) $ coord ; return $ this ; }
Set the latitude for the widget.

@param  float $coord The latitude of a location.
@throws InvalidArgumentException If the longitude is not a number.
@return self
Set the latitude for the widget .