ParsedRecord
in package
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
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
getCollection()
public
getCollection() : Collection|null
Return values
Collection|nullgetData()
public
getData() : array<string|int, mixed>
Return values
array<string|int, mixed>getDbFormat()
public
getDbFormat() : string
Return values
stringgetEntryId()
public
getEntryId() : string
Return values
stringgetId()
public
getId() : int|null
Return values
int|nullsetCollection()
public
setCollection(Collection|null $collection) : void
Parameters
- $collection : Collection|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