for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Ember Db - An embeddable document database for php.
* Copyright (C) 2016 Alexander During
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* @link http://github.com/alexanderduring/php-ember-db
* @copyright Copyright (C) 2016 Alexander During
* @license http://www.gnu.org/licenses GNU General Public License v3.0
*/
declare(strict_types=1);
namespace EmberDb\Collection;
class Collection
{
/** @var MetaData */
private $metaData;
/** @var string */
private $name;
/** @var stromg */
private $path;
public function __construct(string $name, string $path)
$this->name = $name;
$this->path = $path;
$path
string
object<EmberDb\Collection\stromg>
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..
$this->metaData = new MetaData($path . '/' . $name . 'meta.edb');
}
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..