Completed
Push — master ( 055278...3046bf )
by Zoltán
14:57
created

StringFunctions.php ➔ str()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 3
ccs 1
cts 1
cp 1
crap 1
rs 10
1
<?php namespace BuildR\Utils\Functions;
2
3
use BuildR\Utils\Factories\StringFactory;
4
5
/**
6
 * Creates a new StringObject function from the given string,
7
 * using the pre-defined factory that validates the input.
8
 *
9
 * @param string $inputString
10
 *
11
 * @return \BuildR\Utils\StringObject
12
 * @throws \BuildR\Foundation\Exception\InvalidArgumentException
13
 */
14
function str($inputString) {
15 78
    return StringFactory::create($inputString);
16
}
17