Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1429744
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
Sat, May 16, 17:58 (9 h, 5 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
05/c1/16d58398c17bc6d44d95a684bc0f
Default Alt Text
TraitAliasSource.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment