public function getPackagePath()
    {
        $type = $this->getPackageType();
        if ($type === self::TYPE_PSEUDO) {
            return false;
        }

        $root = $this->getPackageRoot();

        //the vendor name also represents the path
        $path = $this->name;

        //if it's a root package
        if ($type === self::TYPE_ROOT) {
            $path = substr($path, 1);
        }

        return $root . '/' . $path;
    }