Completed
Branch master (bc5900)
by Vincent
01:31
created

HasIncluded::setIncluded()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 10
c 1
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace VGirol\JsonApiFaker\Factory;
6
7
/**
8
 * Add "included" member to a factory.
9
 */
10
trait HasIncluded
11
{
12
    /**
13
     * The collection of included resources
14
     *
15
     * @var CollectionFactory
16
     */
17
    public $included;
18
19
    /**
20
     * Sets the included collection.
21
     *
22
     * @param CollectionFactory $included
23
     *
24
     * @return static
25
     */
26 2
    public function setIncluded($included)
27
    {
28 2
        $this->included = $included;
29
30 2
        return $this;
31
    }
32
}
33