PHP Class rock\sanitize\rules\Truncate

Inheritance: extends Rule
Show file Open project: romeoz/rock-sanitize Class Usage Examples

Protected Properties

Property Type Description
$length
$suffix

Public Methods

Method Description
__construct ( $length = 4, $suffix = '...', $config = [] )
sanitize ( $input )

Method Details

__construct() public method

public __construct ( $length = 4, $suffix = '...', $config = [] )

sanitize() public method

public sanitize ( $input )

Property Details

$length protected property

protected $length

$suffix protected property

protected $suffix