Completed
Pull Request — master (#19)
by John
05:56 queued 03:42
created

FieldParserGraphicPrimitive   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getShape() 0 4 1
A getLineWeight() 0 4 1
1
<?php
2
3
namespace Graze\CiffRenderer\Parser\FieldParser;
4
5
use Graze\CiffRenderer\Parser\FieldParser\FieldParserInterface;
6
7
class FieldParserGraphicPrimitive extends AbstractFieldParser implements FieldParserInterface
8
{
9
    /**
10
     * @return string
11
     */
12
    public function getShape()
13
    {
14
        return (string) $this->xmlField->Graphic->Primitive->Shape;
15
    }
16
17
    /**
18
     * @return int
19
     */
20
    public function getLineWeight()
21
    {
22
        return (int) $this->xmlField->Graphic->Primitive->LineW;
23
    }
24
}
25