public function registerClass($property, $className)
    {
        // Make sure the $className is prefixed with a backslash
        $className = '\\' . ltrim($className, '\\');

        $this->classes[$property] = $className;
        return $this;
    }