Completed
Push — 2.1 ( 63ded9...b14dac )
by Paweł
23s queued 11s
created

ComponentLayout   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 41
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getColumnStart() 0 4 1
A setColumnStart() 0 4 1
A getColumnSpan() 0 4 1
A setColumnSpan() 0 4 1
A getMargin() 0 4 1
A setMargin() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Superdesk Web Publisher Core Bundle.
7
 *
8
 * Copyright 2020 Sourcefabric z.ú. and contributors.
9
 *
10
 * For the full copyright and license information, please see the
11
 * AUTHORS and LICENSE files distributed with this source code.
12
 *
13
 * @copyright 2020 Sourcefabric z.ú
14
 * @license http://www.superdesk.org/license
15
 */
16
17
namespace SWP\Bundle\CoreBundle\AppleNews\Document;
18
19
class ComponentLayout
20
{
21
    /** @var int|null */
22
    private $columnStart;
23
24
    /** @var int|null */
25
    private $columnSpan;
26
27
    /** @var Margin|null */
28
    private $margin;
29
30
    public function getColumnStart(): ?int
31
    {
32
        return $this->columnStart;
33
    }
34
35
    public function setColumnStart(?int $columnStart): void
36
    {
37
        $this->columnStart = $columnStart;
38
    }
39
40
    public function getColumnSpan(): ?int
41
    {
42
        return $this->columnSpan;
43
    }
44
45
    public function setColumnSpan(?int $columnSpan): void
46
    {
47
        $this->columnSpan = $columnSpan;
48
    }
49
50
    public function getMargin(): ?Margin
51
    {
52
        return $this->margin;
53
    }
54
55
    public function setMargin(?Margin $margin): void
56
    {
57
        $this->margin = $margin;
58
    }
59
}
60