Documentation

FileLocation
in package

Tags
ORM\Table

(name="file_location")

ORM\Entity

()

Table of Contents

Constants

ALGORITHM  = 'sha3-512'

Properties

$size  : int
$algorithm  : string
$hashHex  : string
$id  : mixed
$uri  : mixed

Methods

__construct()  : mixed
getAlgorithm()  : string
getHashHex()  : string
getId()  : mixed
getUri()  : mixed

Constants

Properties

$size

public int $size

size in bytes

Tags
ORM\Column

(type="string", name="size")

$algorithm

private string $algorithm

algorithm used to hash the file

Tags
ORM\Column

(type="string", name="algorithm")

$hashHex

private string $hashHex

the hash of the file using the algorithm, can be used to validate that the file has not changed

Tags
ORM\Column

(type="string", name="hash_hex")

$id

private mixed $id
Tags
ORM\Id

()

ORM\Column

(type="uuid_binary", length=10, unique=true, name="id")

ORM\GeneratedValue

(strategy="CUSTOM")

ORM\CustomIdGenerator

(class=\Ramsey\Uuid\Doctrine\UuidGenerator::class)

$uri

private mixed $uri
Tags
ORM\Column

(type="string", name="uri")

Methods

__construct()

public __construct(SplFileInfo $localFile, string|null $remoteUri) : mixed
Parameters
$localFile : SplFileInfo
$remoteUri : string|null

getAlgorithm()

public getAlgorithm() : string
Return values
string

getHashHex()

public getHashHex() : string
Return values
string

        
On this page

Search results