ArrayEntryUpdaterFactory::makeUpdaterFor()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 3
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