Completed
Push — master ( 119a25...af28eb )
by Shcherbak
04:15
created

FinderParameters   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 26
wmc 3
lcom 1
cbo 0
ccs 0
cts 6
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A set() 0 3 1
A get() 0 3 2
1
<?php
2
3
  namespace Funivan\Cs\Fs\FileFinder;
4
5
  /**
6
   *
7
   */
8
  class FinderParameters {
9
10
    /**
11
     * @var array
12
     */
13
    private $bag = [];
14
15
16
    /**
17
     * @param string $name
18
     * @param string $value
19
     */
20
    public function set($name, $value) {
21
      $this->bag[$name] = $value;
22
    }
23
24
25
    /**
26
     * @param string $name
27
     * @return string|null
28
     */
29
    public function get($name) {
30
      return isset($this->bag[$name]) ? $this->bag[$name] : null;
31
    }
32
33
  }