*
Code completion - expected arguments are displayed on the top of the suggestions list when used in comparison expressions
* Inspections [when used in a comparison with a value/assignment to/return from method] - the element absent from the expected values list produces the inspection warning
* Code generation - for example, when generating the 'switch' statement, all possible expected values are inserted automatically
*
*
* Expected values can be any of the following:
*
* - numbers
* - string literals
* - constant references
* - class constant references
*
*
* Expected arguments can be specified in any of the following ways:
*
* - #[ExpectedValues(values: [1,2,3])] means that one of the following is expected: `1`, `2`, or `3`
* - #[ExpectedValues(values: MY_CONST] - default value of MY_CONST is expected to be array creation expression, in this case value of MY_CONST will be inlined
* - #[ExpectedValues(flags: [1,2,3])] means that a bitmask of the following is expected: `1`, `2`, or `3`
* - #[ExpectedValues(valuesFromClass: MyClass::class)] means that one of the constants from the class `MyClass` is expected
* - #[ExpectedValues(flagsFromClass: ExpectedValues::class)] means that a bitmask of the constants from the class `MyClass` is expected
*
*
* The attribute with the number of provided constructor arguments different from 1 will result in undefined behavior.
* @since 8.0
*/
#[Attribute(Attribute::TARGET_FUNCTION|Attribute::TARGET_METHOD|Attribute::TARGET_PARAMETER|Attribute::TARGET_PROPERTY)]
class ExpectedValues
{
public function __construct(
array $values = [],
array $flags = [],
string $valuesFromClass = null,
string $flagsFromClass = null,
) {
}
}
__halt_compiler();----SIGNATURE:----qRWjWfArUURwqvTMVbBCO5jLWpbtIJTuDIYNlBzCj/l9xCAEFGIOL7Yap0RgiqUYtr1qAql8fS3Q06Vuj3CaNvhxsySnnlkTMWRw4FeLo3vQV1qx9T0qaEEhU3lI0A1iF8pirwnqr7x9Pjd6fRSjzw4tdPaL/9jCHZusjFrrmaKq8XhUASwWPeEP3dmH/ujIeAwTF94q2/5mwB2ZAHctoG3R6H5ODwSz7b972CRXQHHfuIX21DiTmGbBpQG46sBefBrb6FTd5TRa5CQvmPX0HMmqrvOm2Li0U6Y6EllhHoO2tegyg2GefaGOO35opa5V7LEtEIibyXdMFfRlnd68XhR9ARjgJj1DWftj6AW5UScUqkToOYYhecW9boDagpfz0E6pDAuJEGc6qXwDWzsbFHyF/dw83PPSw4GJCsNH9goXeeJP8ZnhmsFVB5PonyLuo1lyq718S+pVuBHBKCtpIWZ+tkn++ekoCEk/aoCoZnLpM43n5kzUZ3zLBFxSA0G1Wa33I9i+eUxY/0aTjkRNV3jguYw0eUwce0vdsEaNK34uPyaQwJBUWD8jgjFm0JAFD24jVL24tQFtqYRGDo+4cnPQSZYqdYrj6Fy/KmhSA1ybjThW3ztt0Q+/pGJitxIXPyymjNT9rxjQs3aRdDBfjqlLNMeh8QuSwKCWRsdvCtk=----ATTACHMENT:----NzY1OTgyMDY5Njg1MTc0MiA1MjExMjIyMTEwNjQxMjkyIDI1NzkxMzU3OTkxNzM1NjY=