Completed
Push — master ( 7ee214...32fd8d )
by Alberto
19s
created

moka.php ➔ moka()   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 2
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace Moka\Plugin\Mockery;
5
6
use Mockery\MockInterface;
7
use Moka\Moka;
8
use Moka\Proxy\ProxyInterface;
9
10
/**
11
 * @param string $fqcnOrAlias
12
 * @param string|null $alias
13
 * @return MockInterface|ProxyInterface
14
 */
15
function moka(string $fqcnOrAlias, string $alias = null): ProxyInterface
16
{
17
    return Moka::mockery($fqcnOrAlias, $alias);
18
}
19