Skip to content

Commit

Permalink
Fixed type information
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Jul 24, 2020
1 parent 1508e96 commit 7cc0deb
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core-bundle/src/Routing/Page/RouteConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,13 @@ final class RouteConfig
private $defaults;

/**
* @var array<string>|string
* @var array<string>
*/
private $methods;

/**
* @param string|array<string> $methods
*/
public function __construct(string $path = null, string $pathRegex = null, string $urlSuffix = null, array $requirements = [], array $options = [], array $defaults = [], $methods = [])
{
$this->path = $path;
Expand Down
31 changes: 31 additions & 0 deletions core-bundle/src/ServiceAnnotation/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,44 @@
*/
final class Page implements ServiceAnnotationInterface
{
/**
* @var string
*/
private $type;

/**
* @var bool
*/
private $contentComposition = true;

/**
* @var string|null
*/
private $path;

/**
* @var string|null
*/
private $urlSuffix;

/**
* @var array
*/
private $requirements = [];

/**
* @var array
*/
private $options = [];

/**
* @var array
*/
private $defaults = [];

/**
* @var array
*/
private $methods = [];

public function __construct(array $data)
Expand Down

0 comments on commit 7cc0deb

Please sign in to comment.