Completed
Push — master ( 70cb44...646998 )
by Ivannis Suárez
05:28
created

Blog   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 25
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A posts() 0 4 1
1
<?php
2
/**
3
 * This file is part of the Cubiche package.
4
 *
5
 * Copyright (c) Cubiche
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace Cubiche\Core\Validator\Tests\Fixtures;
11
12
use Cubiche\Core\Validator\Assert;
13
use Cubiche\Core\Validator\Mapping\ClassMetadata;
14
15
/**
16
 * Blog class.
17
 *
18
 * @author Ivannis Suárez Jerez <[email protected]>
19
 */
20
class Blog
21
{
22
    /**
23
     * @var array
24
     */
25
    protected $posts;
26
27
    /**
28
     * Blog constructor.
29
     *
30
     * @param array $posts
31
     */
32
    public function __construct(array $posts = array())
33
    {
34
        $this->posts = $posts;
35
    }
36
37
    /**
38
     * @return array
39
     */
40
    public function posts()
41
    {
42
        return $this->posts;
43
    }
44
}
45