HasFrenchCreoleVerboseMethods::getTranslationIn()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
nc 1
1
<?php
2
3
namespace ChinLeung\VerboseLocalization\Concerns;
4
5
trait HasFrenchCreoleVerboseMethods
6
{
7
    /**
8
     * Retrieve the translation in another locale.
9
     *
10
     * @param  string  $locale
11
     * @return mixed
12
     */
13
    abstract public function getTranslationIn(string $locale);
14
15
    /**
16
     * Function to retrieve the translation in Haitian Creole.
17
     *
18
     * @return mixed
19
     */
20
    public function inHaitianCreole()
21
    {
22
        return $this->getTranslationIn('ht');
23
    }
24
}
25