Mongolid\DataMapper\SchemaMapper::__construct PHP Method

__construct() public method

public __construct ( Schema $schema )
$schema Mongolid\Schema\Schema Schema that will be used to map each field.
    public function __construct(Schema $schema)
    {
        $this->schema = $schema;
    }