src/Ten24/Component/Formatter/PhoneNumberFormatter.php
public function setDisplayFormat($displayFormat = self::FORMAT_NA)
    {
        if (substr_count($displayFormat, '%d') !== 4)
        {
            throw new \BadFunctionCallException('The format passed must be passed in the sprintf() format, and have exactly 4 digit components');
        }

        $this->displayFormat = $displayFormat;
    }
public function setDisplayFormat($displayFormat = self::FORMAT_NA)
    {
        if (substr_count($displayFormat, '%d') !== 4)
        {
            throw new \BadFunctionCallException('The format passed must be passed in the sprintf() format, and have exactly 4 digit components');
        }

        $this->displayFormat = $displayFormat;
    }
public function setDisplayFormat ( $ displayFormat = self :: FORMAT_NA ) { if ( substr_count ( $ displayFormat , '%d' ) !== 4 ) { throw new \ BadFunctionCallException ( 'The format passed must be passed in the sprintf() format, and have exactly 4 digit components' ) ; } $ this -> displayFormat = $ displayFormat ; }
Sets the display format

@param string $displayFormat
@throws \BadFunctionCallException
Sets the display format