protected function getEntity($type)
    {
        $entity = isset($this->config[$type]['entity'])
                ? $this->config[$type]['entity']
                : '\Cv\Entity\\'. ucfirst(rtrim($type, 's'));
        
        if (is_string($entity)) {
            $this->config[$type]['entity'] = $entity = new $entity();
        }
        return $entity;
    }
protected function getEntity($type)
    {
        $entity = isset($this->config[$type]['entity'])
                ? $this->config[$type]['entity']
                : '\Cv\Entity\\'. ucfirst(rtrim($type, 's'));
        
        if (is_string($entity)) {
            $this->config[$type]['entity'] = $entity = new $entity();
        }
        return $entity;
    }
protected function getEntity ( $ type ) { $ entity = isset ( $ this -> config [ $ type ] [ 'entity' ] ) ? $ this -> config [ $ type ] [ 'entity' ] : '\Cv\Entity\\' . ucfirst ( rtrim ( $ type , 's' ) ) ; if ( is_string ( $ entity ) ) { $ this -> config [ $ type ] [ 'entity' ] = $ entity = new $ entity ( ) ; } return $ entity ; }
Gets an entity for education or employment.

@param string $type
@return \Core\Entity\EntityInterface
Gets an entity for education or employment .