Josegonzalez\Upload\File\Writer\DefaultWriter::__construct PHP Метод

__construct() публичный Метод

Constructs a writer
public __construct ( Table $table, Cake\ORM\Entity $entity, array $data, string $field, array $settings )
$table Cake\ORM\Table the instance managing the entity
$entity Cake\ORM\Entity the entity to construct a path for.
$data array the data being submitted for a save
$field string the field for which data will be saved
$settings array the settings for the current field
    public function __construct(Table $table, Entity $entity, $data, $field, $settings)
    {
        $this->table = $table;
        $this->entity = $entity;
        $this->data = $data;
        $this->field = $field;
        $this->settings = $settings;
    }