LeanMapper\DefaultMapper::getEntityClass PHP Method

getEntityClass() public method

*
public getEntityClass ( $table, Row $row = null )
$row Row
    public function getEntityClass($table, Row $row = null)
    {
        return ($this->defaultEntityNamespace !== null ? $this->defaultEntityNamespace . '\\' : '') . ucfirst($table);
    }

Usage Example

Example #1
0
 /**
  * @inheritdoc
  */
 public function getEntityClass($table, Row $row = NULL)
 {
     if (isset($this->tables[$table][self::K_ENTITY_CLASS])) {
         return $this->tables[$table][self::K_ENTITY_CLASS];
     }
     return parent::getEntityClass($table, $row);
 }
All Usage Examples Of LeanMapper\DefaultMapper::getEntityClass