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

UStringBuilder::replaceWhole()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 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