libs: Declare dynamic properties and improve doc types

Change-Id: I5cf39d3dde5990e6a0fde91b98cf692e39a3a431
This commit is contained in:
Daimona Eaytoy 2019-09-11 10:57:15 +02:00
parent d57e20f41c
commit ffec2d6ef7
5 changed files with 21 additions and 3 deletions

View file

@ -48,6 +48,9 @@ class MemoizedCallable {
/** @var string Unique name of callable; used for cache keys. */
private $callableName;
/** @var int */
private $ttl;
/**
* @throws InvalidArgumentException if $callable is not a callable.
* @param callable $callable Function or method to memoize.

View file

@ -7,6 +7,10 @@
* @since 1.27
*/
class ComposerInstalled {
/**
* @var array[]
*/
private $contents;
/**
* @param string $location
@ -18,7 +22,7 @@ class ComposerInstalled {
/**
* Dependencies currently installed according to installed.json
*
* @return array
* @return array[]
*/
public function getInstalledDependencies() {
$deps = [];

View file

@ -7,6 +7,10 @@
* @since 1.25
*/
class ComposerJson {
/**
* @var array[]
*/
private $contents;
/**
* @param string $location
@ -18,7 +22,7 @@ class ComposerJson {
/**
* Dependencies as specified by composer.json
*
* @return array
* @return string[]
*/
public function getRequiredDependencies() {
$deps = [];

View file

@ -7,6 +7,10 @@
* @since 1.25
*/
class ComposerLock {
/**
* @var array[]
*/
private $contents;
/**
* @param string $location
@ -18,7 +22,7 @@ class ComposerLock {
/**
* Dependencies currently installed according to composer.lock
*
* @return array
* @return array[]
*/
public function getInstalledDependencies() {
$deps = [];

View file

@ -68,6 +68,9 @@ class XmlTypeCheck {
*/
protected $stackDepth = 0;
/** @var callable|null */
protected $filterCallback;
/**
* @var array Additional parsing options
*/