Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F12660948
ArcanistSymbolRef.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
ArcanistSymbolRef.php
View Options
<?php
abstract
class
ArcanistSymbolRef
extends
ArcanistRef
{
private
$symbol
;
private
$cacheKey
;
const
HARDPOINT_OBJECT
=
'ref.symbol.object'
;
protected
function
newHardpoints
()
{
return
array
(
$this
->
newHardpoint
(
self
::
HARDPOINT_OBJECT
),
);
}
final
public
function
setSymbol
(
$symbol
)
{
$symbol
=
$this
->
resolveSymbol
(
$symbol
);
$this
->
symbol
=
$symbol
;
return
$this
;
}
final
public
function
getSymbol
()
{
return
$this
->
symbol
;
}
final
public
function
getSymbolEngineCacheKey
()
{
if
(
$this
->
cacheKey
===
null
)
{
$parts
=
array
();
$parts
[]
=
sprintf
(
'class(%s)'
,
get_class
(
$this
));
foreach
(
$this
->
newCacheKeyParts
()
as
$part
)
{
$parts
[]
=
$part
;
}
$parts
[]
=
$this
->
getSymbol
();
$this
->
cacheKey
=
implode
(
'.'
,
$parts
);
}
return
$this
->
cacheKey
;
}
protected
function
newCacheKeyParts
()
{
return
array
();
}
final
public
function
attachObject
(
ArcanistRef
$object
)
{
return
$this
->
attachHardpoint
(
self
::
HARDPOINT_OBJECT
,
$object
);
}
final
public
function
getObject
()
{
return
$this
->
getHardpoint
(
self
::
HARDPOINT_OBJECT
);
}
protected
function
resolveSymbol
(
$symbol
)
{
return
$symbol
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Nov 28, 15:42 (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1083729
Default Alt Text
ArcanistSymbolRef.php (1 KB)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline
Log In to Comment