LeanMapper\Repository::getTable PHP Method

getTable() protected method

Gets name of (main) database table related to entity that repository can handle
protected getTable ( ) : string
return string
    protected function getTable()
    {
        if ($this->table === null) {
            if (!$this->tableAnnotationChecked) {
                $this->tableAnnotationChecked = true;
                $table = AnnotationsParser::parseSimpleAnnotationValue('table', $this->getDocComment());
                if ($table !== null) {
                    return $this->table = $table;
                }
            }
            $this->table = $this->mapper->getTableByRepositoryClass(get_called_class());
        }
        return $this->table;
    }