Passed
Push — wip-public-release ( a47743...14cdbd )
by Bogdan
02:52
created

WrapperAwareTrait   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 15
ccs 0
cts 3
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A setWrapper() 0 4 1
1
<?php declare(strict_types=1);
2
3
/*
4
 * This file is part of the pinepain/js-sandbox PHP library.
5
 *
6
 * Copyright (c) 2016-2017 Bogdan Padalko <[email protected]>
7
 *
8
 * Licensed under the MIT license: http://opensource.org/licenses/MIT
9
 *
10
 * For the full copyright and license information, please view the
11
 * LICENSE file that was distributed with this source or visit
12
 * http://opensource.org/licenses/MIT
13
 */
14
15
16
namespace Pinepain\JsSandbox\Wrappers;
17
18
19
trait WrapperAwareTrait
20
{
21
    /**
22
     * @var WrapperInterface
23
     */
24
    private $wrapper;
25
26
    /**
27
     * @param WrapperInterface $wrapper
28
     */
29
    public function setWrapper(WrapperInterface $wrapper): void
30
    {
31
        $this->wrapper = $wrapper;
32
    }
33
}
34