Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F7489973
ReturnReference.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
ReturnReference.php
View Options
<?php
declare
(
strict_types
=
1
);
/*
* This file is part of PHPUnit.
*
* (c) Sebastian Bergmann <sebastian@phpunit.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace
PHPUnit\Framework\MockObject\Stub
;
use
function
sprintf
;
use
PHPUnit\Framework\MockObject\Invocation
;
use
SebastianBergmann\Exporter\Exporter
;
/**
* @internal This class is not covered by the backward compatibility promise for PHPUnit
*/
final
class
ReturnReference
implements
Stub
{
/**
* @var mixed
*/
private
$reference
;
public
function
__construct
(&
$reference
)
{
$this
->
reference
=
&
$reference
;
}
public
function
invoke
(
Invocation
$invocation
)
{
return
$this
->
reference
;
}
public
function
toString
():
string
{
$exporter
=
new
Exporter
;
return
sprintf
(
'return user-specified reference %s'
,
$exporter
->
export
(
$this
->
reference
),
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Nov 23, 18:39 (6 d, 2 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
cf/42/963a07e8a55faa367f7788ccad70
Default Alt Text
ReturnReference.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment