• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

brick / geo / 17456208570

04 Sep 2025 07:10AM UTC coverage: 50.432%. Remained the same
17456208570

push

github

BenMorel
Use @extends and @implements instead of @template-* variants

For consistency with the rest of the project.

1867 of 3702 relevant lines covered (50.43%)

1140.21 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/Engine/GeometryParameter.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Brick\Geo\Engine;
6

7
use Brick\Geo\Geometry;
8

9
/**
10
 * Represents a geometry parameter sent to the database engine.
11
 *
12
 * This object is used to carry a representation of the geometry from the abstract DatabaseEngine to one of its
13
 * concrete implementations, like PdoEngine or Sqlite3Engine.
14
 *
15
 * @internal
16
 */
17
final class GeometryParameter
18
{
19
    /**
20
     * The WKT or WKB data.
21
     */
22
    public readonly string $data;
23

24
    /**
25
     * True for WKB, false for WKT.
26
     */
27
    public readonly bool $isBinary;
28

29
    public readonly int $srid;
30

31
    public function __construct(Geometry $geometry, bool $isBinary)
32
    {
33
        $this->data = $isBinary ? $geometry->asBinary() : $geometry->asText();
1,766✔
34
        $this->isBinary = $isBinary;
1,766✔
35
        $this->srid = $geometry->srid();
1,766✔
36
    }
37
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc