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

brick / geo / 13349286271

15 Feb 2025 10:41PM UTC coverage: 47.314% (+1.5%) from 45.786%
13349286271

push

github

BenMorel
Run CI on all branches

1594 of 3369 relevant lines covered (47.31%)

941.38 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
class GeometryParameter
16
{
17
    /**
18
     * The WKT or WKB data.
19
     */
20
    public readonly string $data;
21

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

27
    public readonly int $srid;
28

29
    public function __construct(Geometry $geometry, bool $isBinary)
30
    {
31
        $this->data     = $isBinary ? $geometry->asBinary() : $geometry->asText();
1,263✔
32
        $this->isBinary = $isBinary;
1,263✔
33
        $this->srid     = $geometry->SRID();
1,263✔
34
    }
35
}
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