diff --git a/src/Bundle/Descriptor.php b/src/Bundle/Descriptor.php index 18674c4..ba4c745 100644 --- a/src/Bundle/Descriptor.php +++ b/src/Bundle/Descriptor.php @@ -89,12 +89,12 @@ class Descriptor /** * Class constructor * - * @param string $name (optional) Name of bundle - * @param string $configurationRootName (optional) Name of configuration root node of bundle - * @param string $rootNamespace (optional) Root namespace of bundle - * @param string $path (optional) Physical path of bundle + * @param string $name (optional) Name of bundle + * @param string $configurationRootName (optional) Name of configuration root node of bundle + * @param string $rootNamespace (optional) Root namespace of bundle + * @param string $path (optional) Physical path of bundle * @param null|Descriptor $parentBundleDescriptor (optional) Descriptor of the parent bundle - * @param null|Descriptor $childBundleDescriptor (optional) Descriptor of the child bundle + * @param null|Descriptor $childBundleDescriptor (optional) Descriptor of the child bundle */ public function __construct( string $name = '', @@ -102,7 +102,7 @@ public function __construct( string $rootNamespace = '', string $path = '', ?Descriptor $parentBundleDescriptor = null, - ?Descriptor $childBundleDescriptor = null + ?Descriptor $childBundleDescriptor = null, ) { $this->name = $name; $this->configurationRootName = $configurationRootName; @@ -119,6 +119,7 @@ public function __construct( * Adds names of files with data fixtures from bundle * * @param array $fixturesPaths Names of files with data fixtures + * * @return Descriptor */ public function addDataFixtures(array $fixturesPaths): Descriptor @@ -136,6 +137,7 @@ public function addDataFixtures(array $fixturesPaths): Descriptor * Creates and returns descriptor from given data * * @param array $data Data of descriptor + * * @return Descriptor */ public static function fromArray(array $data): Descriptor @@ -181,7 +183,7 @@ public static function fromArray(array $data): Descriptor $rootNamespace, $path, $parentBundleDescriptor, - $childBundleDescriptor + $childBundleDescriptor, ); } @@ -189,6 +191,7 @@ public static function fromArray(array $data): Descriptor * Creates and returns descriptor of given bundle * * @param Bundle $bundle The bundle + * * @return Descriptor */ public static function fromBundle(Bundle $bundle): Descriptor @@ -218,6 +221,7 @@ public function getChildBundleDescriptor(): ?Descriptor * Sets descriptor of the child bundle * * @param Descriptor|null $childBundleDescriptor (optional) The child's descriptor + * * @return Descriptor */ public function setChildBundleDescriptor(?Descriptor $childBundleDescriptor): Descriptor @@ -241,6 +245,7 @@ public function getConfigurationRootName(): string * Sets name of configuration root node of bundle * * @param string $configurationRootName The name + * * @return Descriptor */ public function setConfigurationRootName(string $configurationRootName): Descriptor @@ -293,6 +298,7 @@ public function getName(): string * Sets name of bundle * * @param string $name The name + * * @return Descriptor */ public function setName(string $name): Descriptor @@ -316,6 +322,7 @@ public function getParentBundleDescriptor(): ?Descriptor * Sets descriptor of the parent bundle * * @param Descriptor|null $parentBundleDescriptor (optional) The parent's descriptor + * * @return Descriptor */ public function setParentBundleDescriptor(?Descriptor $parentBundleDescriptor): Descriptor @@ -339,6 +346,7 @@ public function getPath(): string * Sets physical path of bundle * * @param string $path The path + * * @return Descriptor */ public function setPath(string $path): Descriptor @@ -362,6 +370,7 @@ public function getRootNamespace(): string * Sets root namespace of bundle * * @param string $rootNamespace The root namespace + * * @return Descriptor */ public function setRootNamespace(string $rootNamespace): Descriptor @@ -392,6 +401,7 @@ public function getShortName(): string * Returns information if given file belongs to bundle * * @param string $filePath Path of file to verify + * * @return bool */ public function hasFile(string $filePath): bool @@ -404,6 +414,7 @@ public function hasFile(string $filePath): bool * * @param bool $withParentAndChild (optional) If is set to true, includes descriptor of the parent and child * bundle (default behaviour). Otherwise - not. + * * @return array */ public function toArray(bool $withParentAndChild = true): array diff --git a/src/Bundle/Descriptors.php b/src/Bundle/Descriptors.php index cc5ab83..0ddb566 100644 --- a/src/Bundle/Descriptors.php +++ b/src/Bundle/Descriptors.php @@ -25,6 +25,7 @@ class Descriptors extends BaseCollection * Returns the descriptors created from given data * * @param array $data Data of descriptors + * * @return Descriptors */ public static function fromArray(array $data): Descriptors @@ -48,6 +49,7 @@ public static function fromArray(array $data): Descriptors * Returns descriptor of bundle that contains given class * * @param string $classNamespace Namespace of class for which descriptor of bundle should be returned + * * @return null|Descriptor */ public function getDescriptor(string $classNamespace): ?Descriptor @@ -81,6 +83,7 @@ public function getDescriptor(string $classNamespace): ?Descriptor * Returns descriptor of bundle with given name * * @param string $bundleName Name of bundle who descriptor should be returned + * * @return null|Descriptor */ public function getDescriptorByName(string $bundleName): ?Descriptor diff --git a/src/Exception/Service/ApplicationService/UnreadableVersionFileException.php b/src/Exception/Service/ApplicationService/UnreadableVersionFileException.php index bd5d643..0ea85ac 100644 --- a/src/Exception/Service/ApplicationService/UnreadableVersionFileException.php +++ b/src/Exception/Service/ApplicationService/UnreadableVersionFileException.php @@ -24,6 +24,7 @@ class UnreadableVersionFileException extends RuntimeException * Creates exception * * @param string $filePath Path of a file who contains version of the application + * * @return UnreadableVersionFileException */ public static function create(string $filePath): UnreadableVersionFileException