ApiSpecification
in package
implements
ArrayAccess
uses
LegacyArrayAccess
FinalYes
Tags
Table of Contents
Interfaces
- ArrayAccess
Constants
- VISIBILITY_API = 16
- VISIBILITY_DEFAULT = 7
- VISIBILITY_INTERNAL = 8
- VISIBILITY_PRIVATE = 4
- VISIBILITY_PROTECTED = 2
- VISIBILITY_PUBLIC = 1
Properties
- $defaultPackageName : string
- $encoding : string
- $examples : Source|null
- $extensions : array<string|int, mixed>
- $ignore : array<string|int, mixed>
- $ignoreTags : array<string|int, mixed>
- $includeSource : bool|null
- $markers : array<string|int, mixed>
- $output : string
- $source : Source
- $validate : bool
- $visibility : array<string|int, mixed>
Methods
- calculateVisiblity() : int
- createDefault() : ApiSpecification
- createFromArray() : self
- getIgnoredTags() : array<string|int, string>
- isVisibilityAllowed() : bool
- Checks whether the Project supports the given visibility.
- offsetExists() : bool
- offsetGet() : mixed
- offsetSet() : void
- offsetUnset() : void
- setIgnore() : void
- source() : Source
- withSource() : self
- __construct() : mixed
- normalizePropertyName() : string
Constants
VISIBILITY_API
public
mixed
VISIBILITY_API
= 16
VISIBILITY_DEFAULT
public
mixed
VISIBILITY_DEFAULT
= 7
VISIBILITY_INTERNAL
public
mixed
VISIBILITY_INTERNAL
= 8
VISIBILITY_PRIVATE
public
mixed
VISIBILITY_PRIVATE
= 4
VISIBILITY_PROTECTED
public
mixed
VISIBILITY_PROTECTED
= 2
VISIBILITY_PUBLIC
public
mixed
VISIBILITY_PUBLIC
= 1
Properties
$defaultPackageName
private
string
$defaultPackageName
$encoding
private
string
$encoding
$examples
private
Source|null
$examples
$extensions
private
array<string|int, mixed>
$extensions
$ignore
private
array<string|int, mixed>
$ignore
$ignoreTags
private
array<string|int, mixed>
$ignoreTags
$includeSource
private
bool|null
$includeSource
$markers
private
array<string|int, mixed>
$markers
$output
private
string
$output
$source
private
Source
$source
$validate
private
bool
$validate
$visibility
private
array<string|int, mixed>
$visibility
Methods
calculateVisiblity()
public
calculateVisiblity() : int
Return values
intcreateDefault()
public
static createDefault() : ApiSpecification
Return values
ApiSpecificationcreateFromArray()
public
static createFromArray(ConfigurationApiMap $api) : self
Parameters
- $api : ConfigurationApiMap
Return values
selfgetIgnoredTags()
public
getIgnoredTags() : array<string|int, string>
Return values
array<string|int, string>isVisibilityAllowed()
Checks whether the Project supports the given visibility.
public
isVisibilityAllowed(int $visibility) : bool
Parameters
- $visibility : int
-
One of the VISIBILITY_* constants of the Settings class.
Tags
Return values
booloffsetExists()
public
offsetExists(string $offset) : bool
Parameters
- $offset : string
Attributes
- #[ReturnTypeWillChange]
Return values
booloffsetGet()
public
offsetGet(string $offset) : mixed
Parameters
- $offset : string
Attributes
- #[ReturnTypeWillChange]
offsetSet()
public
offsetSet(string $offset, mixed $value) : void
Parameters
- $offset : string
- $value : mixed
Attributes
- #[ReturnTypeWillChange]
offsetUnset()
public
offsetUnset(string $offset) : void
Parameters
- $offset : string
Attributes
- #[ReturnTypeWillChange]
setIgnore()
public
setIgnore(array{hidden: bool, symlinks: bool, paths: list} $ignore) : void
Parameters
-
$ignore
: array{hidden: bool, symlinks: bool, paths: list
}
source()
public
source() : Source
Return values
SourcewithSource()
public
withSource(Source $source) : self
Parameters
- $source : Source
Return values
self__construct()
private
__construct(Source $source, string $output, array{hidden: bool, symlinks: bool, paths: list} $ignore, array<int, string> $extensions, array<string|int, string> $visibility, string $defaultPackageName, bool|null $includeSource, array<string|int, string> $markers, array<string|int, string> $ignoreTags, Source|null $examples, string $encoding, bool $validate) : mixed
Parameters
- $source : Source
- $output : string
-
$ignore
: array{hidden: bool, symlinks: bool, paths: list
} - $extensions : array<int, string>
- $visibility : array<string|int, string>
- $defaultPackageName : string
- $includeSource : bool|null
- $markers : array<string|int, string>
- $ignoreTags : array<string|int, string>
- $examples : Source|null
- $encoding : string
- $validate : bool
normalizePropertyName()
private
normalizePropertyName(string $offset) : string
Parameters
- $offset : string