Issues (10)

demo/axis-object.php (2 issues)

1
<?php
2
3
include_once dirname(__DIR__) . '/vendor/autoload.php';
4
5
use Bavix\Geo\Value\Axis;
6
7
$axis = Axis::fromDegrees(100);
8
9
var_dump($axis->radian, $axis->degrees);
10
11
$axis->radian = 3;
12
var_dump($axis->radian, $axis->degrees);
13
14
try {
15
    $proxy = $axis->proxy();
16
    $proxy->degrees = 99;
0 ignored issues
show
Bug Best Practice introduced by
The property degrees does not exist on Bavix\Geo\Value\Valable. Since you implemented __set, consider adding a @property annotation.
Loading history...
17
} catch (\Throwable $throwable) {
18
    var_dump($throwable->getMessage(), $proxy->degrees);
0 ignored issues
show
Bug Best Practice introduced by
The property degrees does not exist on Bavix\Geo\Value\Valable. Since you implemented __get, consider adding a @property annotation.
Loading history...
19
}
20