Pinyin   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeAccessor() 0 3 1
1
<?php
2
/**
3
 * This file is part of the mucts/laravel-pinyin.
4
 *
5
 * This source file is subject to the MIT license that is bundled
6
 * with this source code in the file LICENSE.
7
 *
8
 * @version 1.0
9
 * @author herry<[email protected]>
10
 * @copyright © 2020 MuCTS.com All Rights Reserved.
11
 */
12
13
namespace MuCTS\Laravel\Pinyin\Facades;
14
15
16
use Illuminate\Support\Facades\Facade;
17
use MuCTS\Laravel\Pinyin\Pinyin as Accessor;
18
19
/**
20
 * Class Pinyin
21
 *
22
 * @method static \MuCTS\Laravel\Pinyin\Pinyin setLoader($loader = null)
23
 * @method static \MuCTS\Laravel\Pinyin\Pinyin setDataPath(?string $path)
24
 * @method static array convert(string $string, int $option = \MuCTS\Laravel\Pinyin\Pinyin::DEFAULT)
25
 * @method static array name(string $string, int $option = \MuCTS\Laravel\Pinyin\Pinyin::NAME)
26
 * @method static array permalink(string $string, $delimiter = '-', int $option = \MuCTS\Laravel\Pinyin\Pinyin::DEFAULT)
27
 * @method static array abbr(string $string, $delimiter = '', int $option = \MuCTS\Laravel\Pinyin\Pinyin::DEFAULT)
28
 * @method static array phrase(string $string, $delimiter = ' ', int $option = \MuCTS\Laravel\Pinyin\Pinyin::DEFAULT)
29
 * @method static string sentence($string, $delimiter = ' ', $option = \MuCTS\Laravel\Pinyin\Pinyin::NO_TONE)
30
 * @package MuCTS\Laravel\Pinyin\Facades
31
 */
32
class Pinyin extends Facade
33
{
34
    protected static function getFacadeAccessor()
35
    {
36
        return Accessor::class;
37
    }
38
}