public function setDefaults(array $options, bool $override = FALSE): void
    {
        $this->defaults = $options +
            ($override ? [] : [
                'path'     => null,
                'maxSize'  => self::DEFAULT_MAX_SIZE,
                'rotation' => 0,
                'rights'    => null,
            ]);
    }
public function setDefaults(array $options, bool $override = FALSE): void
    {
        $this->defaults = $options +
            ($override ? [] : [
                'path'     => null,
                'maxSize'  => self::DEFAULT_MAX_SIZE,
                'rotation' => 0,
                'rights'    => null,
            ]);
    }
public function setDefaults ( array $ options , bool $ override = FALSE ) : void { $ this -> defaults = $ options + ( $ override ? [ ] : [ 'path' => null , 'maxSize' => self :: DEFAULT_MAX_SIZE , 'rotation' => 0 , 'rights' => null , ] ) ; }
Sets default options.

@param array $options
@param bool  $override  Flag specifying do override whole defaults

@return void

@see self::__construct()  $options parameter description
Sets default options .