XmlFormat   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 4 1
1
<?php
2
3
namespace ComicVine\Api\Response\Type;
4
5
/**
6
 * Select xml format for response.
7
 *
8
 * Class XmlFormat
9
 *
10
 * @package grzgajda/comicvine-api
11
 * @author  Grzegorz Gajda <[email protected]>
12
 */
13
class XmlFormat implements ResponseFormat
14
{
15
    /**
16
     * Attachment to url request.
17
     *
18
     * @var array
19
     */
20
    protected $format = ['format' => 'xml'];
21
22
    /**
23
     * Return XML format.
24
     *
25
     * @return array
26
     */
27
    public function get()
28
    {
29
        return $this->format;
30
    }
31
32
}