Completed
Push — master ( 33ff9f...a074ca )
by Kevin
12:19 queued 09:07
created

FileTooLargeException   A

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
5
use Doctrine\DBAL\Schema\Column;
6
7
class FileTooLargeException extends \OutOfRangeException
8
{
9
    public static function create(string $path, Column $column): self
10
    {
11
        return new self(sprintf('File %s is too large. File size: %d. Maximum column size: %d.', $path, \filesize($path), $column->getLength()));
12
    }
13
14
}