ArrayEntryUpdaterFactory   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A makeUpdaterFor() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Stratadox\Hydration\Proxying;
6
7
use Stratadox\Hydration\ProducesOwnerUpdaters;
8
use Stratadox\Hydration\UpdatesTheProxyOwner;
9
10
/**
11
 * Produces @see ArrayEntryUpdater instances.
12
 *
13
 * @package Stratadox\Hydrate
14
 * @author Stratadox
15
 */
16
class ArrayEntryUpdaterFactory implements ProducesOwnerUpdaters
17
{
18
    public function makeUpdaterFor(
19
        $theOwner,
20
        string $ofTheProperty,
21
        $atPosition = null
22
    ) : UpdatesTheProxyOwner
23
    {
24
        return ArrayEntryUpdater::for($theOwner, $ofTheProperty, $atPosition);
25
    }
26
}
27