for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Boduch\Grid\Decorators;
use Boduch\Grid\Cell;
class StrLimit extends Decorator
{
/**
* @var int
*/
protected $limit;
* @param int $limit
public function __construct($limit = 100)
$this->limit = $limit;
}
* @param Cell $cell
* @return void
public function decorate(Cell $cell)
$cell->setValue(str_limit($cell->getUnescapedValue(), $this->limit));