A collaboration is a set of cooperating roles.
A collaboration consists of all roles (\FeaturePhp\Collaboration\Role) needed to implement a feature. As such, it corresponds to a \FeaturePhp\Artifact\Artifact (every artifact may have exactly one collaboration).
package | Default |
---|
__construct(\FeaturePhp\Artifact\Artifact $artifact)
\FeaturePhp\Artifact\Artifact
addRoleFromFileSpecification(\FeaturePhp\Specification\FileSpecification $fileSpecification)
This is expected to be called only be a \FeaturePhp\Generator\CollaborationGenerator.
\FeaturePhp\Specification\FileSpecification
findByArtifact(array<mixed,\FeaturePhp\Collaboration\Collaboration> $collaborations, \FeaturePhp\Artifact\Artifact $artifact) : \FeaturePhp\Collaboration\Collaboration
array<mixed,\FeaturePhp\Collaboration\Collaboration>
\FeaturePhp\Artifact\Artifact
\FeaturePhp\Collaboration\Collaboration
getArtifact() : \FeaturePhp\Artifact\Artifact
\FeaturePhp\Artifact\Artifact
getRoles() : array<mixed,\FeaturePhp\Collaboration\Role>
array<mixed,\FeaturePhp\Collaboration\Role>
$artifact : \FeaturePhp\Artifact\Artifact
$roles : array<mixed,\FeaturePhp\Collaboration\Role>