FileTooLargeException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 5
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 3 1
1
<?php
2
namespace DBFaker\Exceptions;
3
4
use Doctrine\DBAL\Schema\Column;
5
6
class FileTooLargeException extends \OutOfRangeException
7
{
8
    public static function create(string $path, Column $column): self
9
    {
10
        return new self(sprintf('File %s is too large. File size: %d. Maximum column size: %d.', $path, \filesize($path), $column->getLength()));
11
    }
12
}
13