src/NumberTransformer/YorubaNumberTransformer.php
<?php
namespace NumberToWords\NumberTransformer;
use NumberToWords\Legacy\Numbers\Words;
class YorubaNumberTransformer implements NumberTransformer
{
public function toWords(int $number): string
{
$converter = new Words();
return $converter->transformToWords($number, 'yo');
}
}