public function canAdd(ResourceEntityInterface $entity)
    {
        return empty($this->className)
            || get_class($entity) == $this->className;
    }
public function canAdd(ResourceEntityInterface $entity)
    {
        return empty($this->className)
            || get_class($entity) == $this->className;
    }
public function canAdd ( ResourceEntityInterface $ entity ) { return empty ( $ this -> className ) || get_class ( $ entity ) == $ this -> className ; }
Verifica que la entidad sea del tipo correcto.
@param ResourceEntityInterface $entity
@return boolean
Verifica que la entidad sea del tipo correcto .