*
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:----gAsbZtDobQpI3oKxGcRRqwHo61mOAMX8ITaPZGdMUo6RMISUNCbOpgeweBQqJleBKLFhAIZD8Qzqt7EZA7D9oSwFaU2AyzI02xQG7vZDp6T4ZqafD2h9fBJq52qk/nq4ur6dNaNYVczGXSDyLyf4x80STw5AJdvo0NXcJuHyBEJgsF/Cxf/eckfkpjMa7Rn56rhZPUfegZ4CIXss+Cn+IF5ZvZz4SXb/LkMV2FXKYcMqd73dPFDtgQQgQ/qSgXrZImJRRJQ/4JSEMuvb2Bk0LZudFD4nGIMP0Qa/rZsj5EJ/lnhctvu0riRQCebeWEZpIqclMPVEEmjD/A6CEAEpFkeoXJvgGOTK+EXYYBRgEYwlfM2iUvkE3oTGjYSYqhr+2fp+1UwMzz/GY9tEQ7185Shhm1RAddQLIASjFLXl8usM8l66UExtrneM91cD0NGknjd4Ni9wchccS2+IsOuR4FMDRuRUJKKRFtq+zqSccYU9JADj4VFLGzJvWqlAISa6RMyCDLsa6ZAw4kjerOshNHYH4Ge6yC9+n9yznPKwyd5OuSa2u5Hymmgxw4CavacV1cRT03NftAJFplIoe//bDI6FrOzk+HlckzfqPUG0zVmR0NhzJPeSAqMDH0QpRNNy8X7rbg0YNXNbPdJc1fYKjw/5gYDoR6KKv3mU2/DF9ns=----ATTACHMENT:----MjQxOTkzNDMwMTA4MTU4NSA1NDc2NDg4MjA4MTk3NTAyIDE3MTgxMjI3ODIyNTIxNjg=