Skip to content
Permalink
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (14 sloc) 341 Bytes
<?php
declare(strict_types=1);
namespace Xthiago;
use Assert\Assert;
class Sample
{
public function __construct(string $latitude, string $longitude)
{
Assert::lazy()
->that($latitude, 'latitude')->range(-90, 90)
->that($longitude, 'longitude')->range(-140, 140)
->verifyNow();
}
}
You can’t perform that action at this time.