for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Mbright\Validation\Rule\Validate\MySql;
use Mbright\Validation\Rule\Validate\Strlen;
/**
* Validates that data can be inserted into one of the following column types:
* - LongBlob
* - LongText
*/
class LongBlob extends Strlen
{
* @param int $len Acceptable string length.
public function __construct(int $len)
if ($len < 0 || $len > (pow(2, 32))) {
throw new \InvalidArgumentException('Long Blob & Text can only accept lengths between 0 - 2^16');
}
parent::__construct($len);