for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SimpleMapper\Structure;
use SimpleMapper\ActiveRow;
use SimpleMapper\Scope\Scope;
use SimpleMapper\Selection;
class EmptyStructure implements Structure
{
/**
* Register new active row class for table
* @param string $tableName
* @param string $activeRowClass
* @return Structure
*/
public function registerActiveRowClass(string $tableName, string $activeRowClass): Structure
return $this;
}
* Register new selection class for table
* @param string $selectionClass
public function registerSelectionClass(string $tableName, string $selectionClass): Structure
* Register new scopes for table
* @param array $scopes
public function registerScopes(string $tableName, array $scopes): Structure
* Fetch row class by table
* @param string $table
* @return string
public function getActiveRowClass(string $table): string
return ActiveRow::class;
* Fetch selection class by table
public function getSelectionClass(string $table): string
return Selection::class;
* Returns all scopes registered for table
* @return array
public function getScopes(string $table): array
return [];
* Returns one scope
* @param string $scope
* @return Scope|null
public function getScope(string $table, string $scope): ?Scope
return null;