Completed
Push — master ( 44a2ba...68fb93 )
by Korotkov
01:14
created

run.php ➔ show()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
require_once 'vendor/autoload.php';
4
5
$depository = new \Behavioral\Interpreter\Depository();
6
7
$depository->setItems(new \Behavioral\Interpreter\Item('Korn', 'Korn'));
8
$depository->setItems(new \Behavioral\Interpreter\Item('Deftones', 'Adrenaline'));
9
10
$interpreter = new \Behavioral\Interpreter\Interpreter($depository);
11
12
$interpreter->interpret('album 2');
13
$interpreter->interpret('album author 2');
14
$interpreter->interpret('album author 1');
15
$interpreter->interpret('author 1');
16