Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7481845
TraitAliasSource.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
TraitAliasSource.php
View Options
<?php
declare
(
strict_types
=
1
);
namespace
Phan\Language\Element
;
/**
* This contains info for the source method of a trait alias.
*/
class
TraitAliasSource
{
/**
* @var int line number where this trait method alias was created
* (in the class using traits).
*/
private
$alias_lineno
;
/**
* @var string source method name
*/
private
$source_method_name
;
/**
* @var int the overridden visibility modifier, or 0 if the visibility didn't change
*/
private
$alias_visibility_flags
;
public
function
__construct
(
string
$source_method_name
,
int
$alias_lineno
,
int
$alias_visibility_flags
)
{
$this
->
source_method_name
=
$source_method_name
;
$this
->
alias_lineno
=
$alias_lineno
;
$this
->
alias_visibility_flags
=
$alias_visibility_flags
;
}
/**
* Returns the name of the method which this is an alias of.
*/
public
function
getSourceMethodName
():
string
{
return
$this
->
source_method_name
;
}
/**
* Returns the line number where this trait method alias was created
* (in the class using traits).
*/
public
function
getAliasLineno
():
int
{
return
$this
->
alias_lineno
;
}
/**
* Returns the overridden visibility modifier, or 0 if the visibility didn't change
*/
public
function
getAliasVisibilityFlags
():
int
{
return
$this
->
alias_visibility_flags
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Nov 23, 12:54 (5 d, 22 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
39/1b/c6b8d2ab98ca17a8d07cfb88eb5b
Default Alt Text
TraitAliasSource.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment