Source of file DatabaseEntry.php
Size: 2,994 Bytes - Last Modified: 2019-05-10T12:24:09+01:00
src/Core/Entry/DatabaseEntry.php
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 | <?php /** * Copyright 2019 University of Liverpool * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ namespace pgb_liv\php_ms\Core\Entry; use pgb_liv\php_ms\Core\Database\DatabaseInterface; /** * A database entry element, allows for assigning an object to a specific database reference * * @author Andrew Collins */ class DatabaseEntry { /** * The database object to link * * @var DatabaseInterface */ private $database; /** * The level of evidence of that this database on this entry. * * @var string */ private $evidence; /** * The sequence version number of this entry. * * @var string */ private $sequenceVersion; /** * The entry version number of this entry. * * @var string */ private $entryVersion; /** * The unique identifier associated with the database entry. * * @var string */ private $uniqueIdentifier; /** * Tne name of this entry * * @var string */ private $name; /** * Creates a new DatabaseEntry object with the specified database * * @param DatabaseInterface $protein * The database object that will be referenced by the user of this instance */ public function __construct(DatabaseInterface $database) { $this->database = $database; } /** * Gets the database * * @return DatabaseInterface */ public function getDatabase() { return $this->database; } public function setEvidence($proteinExistence) { $this->evidence = $proteinExistence; } public function getEvidence() { return $this->evidence; } public function setSequenceVersion($version) { $this->sequenceVersion = $version; } public function getSequenceVersion() { return $this->sequenceVersion; } public function setEntryVersion($version) { $this->entryVersion = $version; } public function getEntryVersion() { return $this->entryVersion; } public function setUniqueIdentifier($identifier) { $this->uniqueIdentifier = $identifier; } public function getUniqueIdentifier() { return $this->uniqueIdentifier; } public function setName($name) { $this->name = $name; } public function getName() { return $this->name; } } |