public function get(?string $unit = null): int
    {
        if (null === $this->value) {
            $this->value = $this->stringToBytes(ini_get('upload_max_filesize'));
        }
        $value = $this->value;

        switch ($unit) {
            case self::GIGABYTES:
                $value /= 1024;
            case self::MEGABYTES:
                $value /= 1024;
            case self::KILOBYTES:
                $value /= 1024;
            case self::BYTES:
            default:
        }

        return $value;
    }
public function get(?string $unit = null): int
    {
        if (null === $this->value) {
            $this->value = $this->stringToBytes(ini_get('upload_max_filesize'));
        }
        $value = $this->value;

        switch ($unit) {
            case self::GIGABYTES:
                $value /= 1024;
            case self::MEGABYTES:
                $value /= 1024;
            case self::KILOBYTES:
                $value /= 1024;
            case self::BYTES:
            default:
        }

        return $value;
    }
public function get ( ? string $ unit = null ) : int { if ( null === $ this -> value ) { $ this -> value = $ this -> stringToBytes ( ini_get ( 'upload_max_filesize' ) ) ; } $ value = $ this -> value ; switch ( $ unit ) { case self :: GIGABYTES : $ value /= 1024 ; case self :: MEGABYTES : $ value /= 1024 ; case self :: KILOBYTES : $ value /= 1024 ; case self :: BYTES : default : } return $ value ; }
Return value of upload_max_filesize in bytes.

@param string|null $unit

@return int
Return value of upload_max_filesize in bytes .