• 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

30.0
/src/Tin.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Brick\Geo;
6

7
use Brick\Geo\Attribute\NoProxy;
8
use Brick\Geo\Projector\Projector;
9
use Override;
10

11
use function array_map;
12

13
/**
14
 * A TIN (triangulated irregular network) is a PolyhedralSurface consisting only of Triangle patches.
15
 *
16
 * @extends PolyhedralSurface<Triangle>
17
 *
18
 * @final
19
 */
20
class Tin extends PolyhedralSurface
21
{
22
    #[NoProxy, Override]
23
    public function geometryType(): string
24
    {
25
        return 'TIN';
736✔
26
    }
27

28
    #[NoProxy, Override]
29
    public function geometryTypeBinary(): int
30
    {
31
        return Geometry::TIN;
384✔
32
    }
33

34
    #[Override]
35
    public function project(Projector $projector): Tin
36
    {
37
        return new Tin(
×
38
            $projector->getTargetCoordinateSystem($this->coordinateSystem),
×
39
            ...array_map(
×
40
                fn (Polygon $patch) => $patch->project($projector),
×
41
                $this->patches,
×
42
            ),
×
43
        );
×
44
    }
45

46
    #[Override]
47
    protected function patchType(): string
48
    {
49
        return Triangle::class;
704✔
50
    }
51
}
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