Completed
Push — master ( 1bd818...6fba0f )
by Richard
02:31
created

Headers   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A run() 0 3 1
1
<?php
2
namespace Transphporm\Property\ContentPseudo;
3
class Headers implements \Transphporm\Property\ContentPseudo {
4
    private $headers;
5
6
    public function __construct(&$headers) {
7
		$this->headers = &$headers;
8
	}
9
10
    public function run($value, $pseudoArgs, $element) {
11
        $this->headers[] = [$pseudoArgs, implode('', $value)];
12
    }
13
}
14