Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Manifest.php

class Manifest

Hierarchy

  • class \PharIo\Manifest\Manifest

Expanded class hierarchy of Manifest

1 file declares its use of Manifest
ExcludeList.php in vendor/phpunit/phpunit/src/Util/ExcludeList.php

File

vendor/phar-io/manifest/src/values/Manifest.php, line 15

Namespace

PharIo\Manifest
View source
class Manifest {
    
    /** @var ApplicationName */
    private $name;
    
    /** @var Version */
    private $version;
    
    /** @var Type */
    private $type;
    
    /** @var CopyrightInformation */
    private $copyrightInformation;
    
    /** @var RequirementCollection */
    private $requirements;
    
    /** @var BundledComponentCollection */
    private $bundledComponents;
    public function __construct(ApplicationName $name, Version $version, Type $type, CopyrightInformation $copyrightInformation, RequirementCollection $requirements, BundledComponentCollection $bundledComponents) {
        $this->name = $name;
        $this->version = $version;
        $this->type = $type;
        $this->copyrightInformation = $copyrightInformation;
        $this->requirements = $requirements;
        $this->bundledComponents = $bundledComponents;
    }
    public function getName() : ApplicationName {
        return $this->name;
    }
    public function getVersion() : Version {
        return $this->version;
    }
    public function getType() : Type {
        return $this->type;
    }
    public function getCopyrightInformation() : CopyrightInformation {
        return $this->copyrightInformation;
    }
    public function getRequirements() : RequirementCollection {
        return $this->requirements;
    }
    public function getBundledComponents() : BundledComponentCollection {
        return $this->bundledComponents;
    }
    public function isApplication() : bool {
        return $this->type
            ->isApplication();
    }
    public function isLibrary() : bool {
        return $this->type
            ->isLibrary();
    }
    public function isExtension() : bool {
        return $this->type
            ->isExtension();
    }
    public function isExtensionFor(ApplicationName $application, ?Version $version = null) : bool {
        if (!$this->isExtension()) {
            return false;
        }
        
        /** @var Extension $type */
        $type = $this->type;
        if ($version !== null) {
            return $type->isCompatibleWith($application, $version);
        }
        return $type->isExtensionFor($application);
    }

}

Members

Title Sort descending Modifiers Object type Summary
Manifest::$bundledComponents private property @var BundledComponentCollection
Manifest::$copyrightInformation private property @var CopyrightInformation
Manifest::$name private property @var ApplicationName
Manifest::$requirements private property @var RequirementCollection
Manifest::$type private property @var Type
Manifest::$version private property @var Version
Manifest::getBundledComponents public function
Manifest::getCopyrightInformation public function
Manifest::getName public function
Manifest::getRequirements public function
Manifest::getType public function
Manifest::getVersion public function
Manifest::isApplication public function
Manifest::isExtension public function
Manifest::isExtensionFor public function
Manifest::isLibrary public function
Manifest::__construct public function
RSS feed
Powered by Drupal