ImageConfiguration
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 6
c 0
b 0
f 0
wmc 0
lcom 0
cbo 1
1
<?php
2
3
4
namespace HustleWorks\Chute\DTO;
5
6
/**
7
 * ImageConfiguration
8
 *
9
 * Configuration settings for image upload
10
 *
11
 * @category DTO
12
 * @package  HustleWorks\Chute\DTO
13
 * @author   Don Herre <[email protected]>
14
 * @license  Proprietary and confidential
15
 * @link     http://hustleworks.com
16
 *
17
 * @property ImageSizeConfiguration[] $sizes          parameters for each size needed for image upload
18
 * @property ImageRuleConfiguration   $rules          rules for upload validation
19
 * @property string                   $image_name     name of the image
20
 * @property string                   $directory      full directory name for image storage
21
 * @property string                   $temp_disk      name of the disk to store file while in temp state
22
 * @property string                   $primary_disk   name of the dist to store file once in permanent state
23
 * @property array                    $optional_data  extra parameters for saving to database, to satisfy framework/ORM requirements
24
 */
25
class ImageConfiguration extends TransferObject
26
{
27
    protected $sizes, $optional_data = [];
0 ignored issues
show
Coding Style introduced by
It is generally advisable to only define one property per statement.

Only declaring a single property per statement allows you to later on add doc comments more easily.

It is also recommended by PSR2, so it is a common style that many people expect.

Loading history...
28
29
    protected $image_name, $rules, $directory, $temp_disk, $primary_disk;
0 ignored issues
show
Coding Style introduced by
It is generally advisable to only define one property per statement.

Only declaring a single property per statement allows you to later on add doc comments more easily.

It is also recommended by PSR2, so it is a common style that many people expect.

Loading history...
30
}