public function generateEntity($entity, array $data)
    {
        $handlers = $this->getHandlers();

        if (isset($handlers[$entity]['mapping']) && isset($handlers[$entity]['pattern'])) {
            $data += array('placeholders' => $handlers[$entity]['mapping']);
            return $this->generate($handlers[$entity]['pattern'], $data);
        }

        return null;
    }
public function generateEntity($entity, array $data)
    {
        $handlers = $this->getHandlers();

        if (isset($handlers[$entity]['mapping']) && isset($handlers[$entity]['pattern'])) {
            $data += array('placeholders' => $handlers[$entity]['mapping']);
            return $this->generate($handlers[$entity]['pattern'], $data);
        }

        return null;
    }
public function generateEntity ( $ entity , array $ data ) { $ handlers = $ this -> getHandlers ( ) ; if ( isset ( $ handlers [ $ entity ] [ 'mapping' ] ) && isset ( $ handlers [ $ entity ] [ 'pattern' ] ) ) { $ data += array ( 'placeholders' => $ handlers [ $ entity ] [ 'mapping' ] ) ; return $ this -> generate ( $ handlers [ $ entity ] [ 'pattern' ] , $ data ) ; } return null ; }
Generates an alias for an entity
@param string $entity
@param array $data
@return string|null
Generates an alias for an entity