for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Sco\Admin\Form\Elements;
class Text extends Input
{
protected $type = 'text';
protected $size = '';
public function getSize()
return $this->size;
}
public function largeSize()
$this->size = 'large';
return $this;
public function miniSize()
$this->size = 'mini';
public function toArray()
return parent::toArray() + [
'size' => $this->getSize(),
];