MetadataArguments::getMetadata()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace As3\Modlr\Metadata\Events;
4
5
use As3\Modlr\Events\EventArguments;
6
use As3\Modlr\Metadata\EntityMetadata;
7
8
/**
9
 * Store event constants.
10
 *
11
 * @author Josh Worden <[email protected]>
12
 */
13
class MetadataArguments extends EventArguments
14
{
15
    /**
16
     * @var EntityMetadata
17
     */
18
    private $metadata;
19
20
    /**
21
     * Constructor.
22
     *
23
     * @param   EntityMetadata   $metadata
24
     */
25
    public function __construct(EntityMetadata $metadata)
26
    {
27
        $this->metadata = $metadata;
28
    }
29
30
    /**
31
     * Gets the metadata.
32
     *
33
     * @return  EntityMetadata
34
     */
35
    public function getMetadata()
36
    {
37
        return $this->metadata;
38
    }
39
}
40