2020-07-29 23:39:41 +00:00
|
|
|
<?php
|
|
|
|
|
2021-05-09 20:15:43 +00:00
|
|
|
declare (strict_types=1);
|
2024-01-02 02:40:38 +00:00
|
|
|
namespace Rector\ValueObject;
|
2020-07-29 23:39:41 +00:00
|
|
|
|
2021-10-25 13:44:53 +00:00
|
|
|
/**
|
2023-05-24 12:27:19 +00:00
|
|
|
* @api
|
2021-10-25 13:44:53 +00:00
|
|
|
* @enum
|
|
|
|
*/
|
2020-07-29 23:39:41 +00:00
|
|
|
final class MethodName
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var string
|
2021-10-07 16:13:11 +00:00
|
|
|
*/
|
|
|
|
public const __SET = '__set';
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public const __GET = '__get';
|
|
|
|
/**
|
|
|
|
* @var string
|
2020-07-29 23:39:41 +00:00
|
|
|
*/
|
|
|
|
public const CONSTRUCT = '__construct';
|
2020-09-01 17:56:30 +00:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public const DESCTRUCT = '__destruct';
|
2020-12-28 23:38:05 +00:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public const CLONE = '__clone';
|
2020-11-12 20:47:25 +00:00
|
|
|
/**
|
|
|
|
* Mostly used in unit tests
|
2021-05-12 13:15:45 +00:00
|
|
|
* @see https://phpunit.readthedocs.io/en/9.3/fixtures.html#more-setup-than-teardown
|
2020-11-12 20:47:25 +00:00
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public const SET_UP = 'setUp';
|
2020-12-05 20:38:33 +00:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public const SET_STATE = '__set_state';
|
2021-05-12 13:15:45 +00:00
|
|
|
/**
|
|
|
|
* @see https://phpunit.readthedocs.io/en/9.3/fixtures.html#fixtures-sharing-fixture-examples-databasetest-php
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public const SET_UP_BEFORE_CLASS = 'setUpBeforeClass';
|
2021-06-24 10:09:03 +00:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public const CALL = '__call';
|
2021-07-29 16:36:00 +00:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public const TO_STRING = '__toString';
|
2021-08-15 17:30:07 +00:00
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public const INVOKE = '__invoke';
|
2020-07-29 23:39:41 +00:00
|
|
|
}
|