Elgg\Database\MetadataTable::__construct PHP Method

__construct() public method

Constructor
public __construct ( MetadataCache $cache, Database $db, EntityTable $entityTable, EventsService $events, ElggSession $session )
$cache Elgg\Cache\MetadataCache A cache for this table
$db Elgg\Database The Elgg database
$entityTable EntityTable The entities table
$events Elgg\EventsService The events registry
$session ElggSession The session
    public function __construct(Cache $cache, Database $db, EntityTable $entityTable, Events $events, Session $session)
    {
        $this->cache = $cache;
        $this->db = $db;
        $this->entityTable = $entityTable;
        $this->events = $events;
        $this->session = $session;
        $this->table = $this->db->prefix . "metadata";
    }