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

FinderParameters::get()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
ccs 0
cts 3
cp 0
rs 10
cc 2
eloc 2
nc 2
nop 1
crap 6
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
  }