Documentation

ParsedRecord

Class ParsedRecord Every parser exposes a different set of fields, so what a parser read is stored as one document rather than one table per format. A record is identified by its format and its entry identifier.

Tags
author

Amélie DUVERNET aka Amelaye amelieonline@gmail.com

Attributes
#[Entity]
#[Table]
$name: "parsed_record"
#[UniqueConstraint]
$name: "uniq_parsed_record"
$columns: ["db_format", "entry_id"]

Table of Contents

Properties

$collection  : Collection|null
$data  : array<string|int, mixed>
$dbFormat  : string
$entryId  : string
$id  : int|null

Methods

getCollection()  : Collection|null
getData()  : array<string|int, mixed>
getDbFormat()  : string
getEntryId()  : string
getId()  : int|null
setCollection()  : void
setData()  : void
setDbFormat()  : void
setEntryId()  : void

Properties

$collection

private Collection|null $collection = null
Attributes
#[JoinColumn]
$name: "id_collection"
$referencedColumnName: "id"
$nullable: true
$onDelete: "SET NULL"
#[ManyToOne]
$targetEntity: \Amelaye\BioPHP\Domain\Database\Entity\Collection::class

$data

private array<string|int, mixed> $data = []
Attributes
#[Column]
$type: "json"
$nullable: false
$name: "data"

$dbFormat

private string $dbFormat = ""
Attributes
#[Column]
$type: "string"
$length: 30
$nullable: false
$name: "db_format"

$entryId

private string $entryId = ""
Attributes
#[Column]
$type: "string"
$length: 100
$nullable: false
$name: "entry_id"

$id

private int|null $id = null
Attributes
#[Column]
$type: "integer"
$name: "id"
#[GeneratedValue]
#[Id]

Methods

getData()

public getData() : array<string|int, mixed>
Return values
array<string|int, mixed>

getDbFormat()

public getDbFormat() : string
Return values
string

getEntryId()

public getEntryId() : string
Return values
string

getId()

public getId() : int|null
Return values
int|null

setData()

public setData(array<string|int, mixed> $data) : void
Parameters
$data : array<string|int, mixed>

setDbFormat()

public setDbFormat(string $dbFormat) : void
Parameters
$dbFormat : string

setEntryId()

public setEntryId(string $entryId) : void
Parameters
$entryId : string
On this page

Search results