Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F101639115
DiffusionExternalSymbolQuery.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Feb 12, 08:28
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Feb 14, 08:28 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24202294
Attached To
rPH Phabricator
DiffusionExternalSymbolQuery.php
View Options
<?php
final
class
DiffusionExternalSymbolQuery
{
private
$languages
=
array
();
private
$types
=
array
();
private
$names
=
array
();
private
$contexts
=
array
();
public
function
withLanguages
(
array
$languages
)
{
$this
->
languages
=
$languages
;
return
$this
;
}
public
function
withTypes
(
array
$types
)
{
$this
->
types
=
$types
;
return
$this
;
}
public
function
withNames
(
array
$names
)
{
$this
->
names
=
$names
;
return
$this
;
}
public
function
withContexts
(
array
$contexts
)
{
$this
->
contexts
=
$contexts
;
return
$this
;
}
public
function
getLanguages
()
{
return
$this
->
languages
;
}
public
function
getTypes
()
{
return
$this
->
types
;
}
public
function
getNames
()
{
return
$this
->
names
;
}
public
function
getContexts
()
{
return
$this
->
contexts
;
}
public
function
matchesAnyLanguage
(
array
$languages
)
{
return
(!
$this
->
languages
)
||
array_intersect
(
$languages
,
$this
->
languages
);
}
public
function
matchesAnyType
(
array
$types
)
{
return
(!
$this
->
types
)
||
array_intersect
(
$types
,
$this
->
types
);
}
}
Event Timeline
Log In to Comment