mirror of
https://github.com/danog/psalm.git
synced 2024-12-04 02:27:59 +01:00
66 lines
1.5 KiB
PHP
66 lines
1.5 KiB
PHP
<?php
|
|
namespace Psalm;
|
|
|
|
class Aliases
|
|
{
|
|
/**
|
|
* @var array<string, string>
|
|
*/
|
|
public $uses;
|
|
|
|
/**
|
|
* @var array<string, string>
|
|
*/
|
|
public $uses_flipped;
|
|
|
|
/**
|
|
* @var array<string, string>
|
|
*/
|
|
public $functions;
|
|
|
|
/**
|
|
* @var array<string, string>
|
|
*/
|
|
public $functions_flipped;
|
|
|
|
/**
|
|
* @var array<string, string>
|
|
*/
|
|
public $constants;
|
|
|
|
/**
|
|
* @var array<string, string>
|
|
*/
|
|
public $constants_flipped;
|
|
|
|
/** @var string|null */
|
|
public $namespace;
|
|
|
|
/**
|
|
* @param string|null $namespace
|
|
* @param array<string, string> $uses
|
|
* @param array<string, string> $functions
|
|
* @param array<string, string> $constants
|
|
* @param array<string, string> $uses_flipped
|
|
* @param array<string, string> $functions_flipped
|
|
* @param array<string, string> $constants_flipped
|
|
*/
|
|
public function __construct(
|
|
$namespace = null,
|
|
array $uses = [],
|
|
array $functions = [],
|
|
array $constants = [],
|
|
array $uses_flipped = [],
|
|
array $functions_flipped = [],
|
|
array $constants_flipped = []
|
|
) {
|
|
$this->namespace = $namespace;
|
|
$this->uses = $uses;
|
|
$this->functions = $functions;
|
|
$this->constants = $constants;
|
|
$this->uses_flipped = $uses_flipped;
|
|
$this->functions_flipped = $functions_flipped;
|
|
$this->constants_flipped = $constants_flipped;
|
|
}
|
|
}
|