Completed
Push — master ( 3af021...f445d7 )
by Garrett
02:51
created

UStringBuilder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 9
wmc 1
lcom 1
cbo 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A replaceWhole() 0 6 1
1
<?php
2
3
namespace StringObject;
4
5
class UStringBuilder extends UString
0 ignored issues
show
Bug introduced by
There is at least one abstract method in this class. Maybe declare it as abstract, or implement the remaining methods: append, compareTo, count, current, escape, isAscii, isEmpty, offsetGet, offsetSet, offsetUnset, prepend, remove, removeSubstr, repeat, replace, replaceSubstr, substr, translate, trim, unescape
Loading history...
6
{
7
    public function replaceWhole($replacement = '')
8
    {
9
        self::testStringableObject($replacement);
10
        $this->raw = (string) $replacement;
11
        return $this;
12
    }
13
}
14