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

phpolar / model / 15811161622

22 Jun 2025 09:54PM UTC coverage: 91.409% (+2.4%) from 89.003%
15811161622

push

github

web-flow
Merge pull request #131 from phpolar/merge-core

test: add unit tests from phpolar/core

266 of 291 relevant lines covered (91.41%)

3.71 hits per line

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

100.0
/src/AbstractPropertyNameExtractor.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace Phpolar\Model;
6

7
use ReflectionProperty;
8

9
/**
10
 * Provides a default implementation used to *extract* the name of a property.
11
 */
12
abstract class AbstractPropertyNameExtractor
13
{
14
    protected string $propName;
15

16
    /**
17
     * Immutably sets the `$propName` with the name of the given property.
18
     *
19
     * @internal
20
     */
21
    public function withPropName(ReflectionProperty $prop): static
22
    {
23
        $copy = clone $this;
7✔
24
        $copy->propName = $prop->getName();
7✔
25
        return $copy;
7✔
26
    }
27
}
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