RewardManager::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 1 Features 1
Metric Value
cc 1
eloc 0
nc 1
nop 1
dl 0
loc 3
rs 10
c 3
b 1
f 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Odiseo\SyliusReferralsPlugin\Reward;
6
7
use Sylius\Component\Core\Model\OrderInterface;
8
9
final class RewardManager implements RewardManagerInterface
10
{
11
    public function __construct(
12
        private RewardHandlerInterface $rewardHandler,
13
    ) {
14
    }
15
16
    public function create(OrderInterface $order): void
17
    {
18
        $this->rewardHandler->apply($order);
19
    }
20
}
21