Completed
Push — master ( a19420...ef36c3 )
by Shcherbak
02:02
created

Pattern::iterateOverCollections()   A

Complexity

Conditions 4
Paths 4

Size

Total Lines 20
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 13
CRAP Score 4

Importance

Changes 3
Bugs 1 Features 2
Metric Value
c 3
b 1
f 2
dl 0
loc 20
ccs 13
cts 13
cp 1
rs 9.2
cc 4
eloc 12
nc 4
nop 2
crap 4
1
<?php
2
3
  namespace Funivan\PhpTokenizer\Pattern;
4
5
  use Funivan\PhpTokenizer\Collection;
6
7
8
  /**
9
   * @deprecated
10
   */
11
  class Pattern extends PatternMatcher {
12
13
    /**
14
     * @deprecated
15
     * @inheritdoc
16
     */
17
    public function __construct(Collection $collection) {
18
      trigger_error('Deprecated. Use matcher instead', E_USER_DEPRECATED);
19
      parent::__construct($collection);
20
    }
21
22
23
  }