mirror of
https://github.com/yiisoft/yii2.git
synced 2026-03-05 15:04:38 +01:00
* Updated php.net link for some MemCache properties [skip ci] * Changed protocol to https for links to php.net in comments * Changed protocol to https for links to php.net in code * Changed www.php.net (http) to secure.php.net (https) in comments * Changed www.php.net (http) to secure.php.net (https) in code * Changed protocol to https for links to php.net in UPGRADE.md * Changed protocol to https for links to pecl.php.net in comments * Changed us.php.net to secure.php.net (https) in comments * Changed protocol to https for links to php.net in docs * Changed www.php.net (http) to secure.php.net (https) in docs * Changed protocol to https for links to pecl.php.net in docs * Changed ru/jp.php.net to secure.php.net (https) in docs Don't sure about russian guide: is this links meant to be for guide on russian, or not?
33 lines
712 B
PHP
33 lines
712 B
PHP
<?php
|
|
/**
|
|
* @link http://www.yiiframework.com/
|
|
* @copyright Copyright (c) 2008 Yii Software LLC
|
|
* @license http://www.yiiframework.com/license/
|
|
*/
|
|
|
|
namespace yiiunit\data\helpers;
|
|
|
|
/**
|
|
* CustomDebugInfo serves for the testing of `__debugInfo()` PHP magic method.
|
|
*
|
|
* @see \yiiunit\framework\helpers\VarDumperTest
|
|
*/
|
|
class CustomDebugInfo
|
|
{
|
|
public $volume;
|
|
public $unitPrice;
|
|
|
|
/**
|
|
* @see https://secure.php.net/manual/en/language.oop5.magic.php#language.oop5.magic.debuginfo
|
|
*
|
|
* @return array
|
|
*/
|
|
public function __debugInfo()
|
|
{
|
|
return [
|
|
'volume' => $this->volume,
|
|
'totalPrice' => $this->volume * $this->unitPrice,
|
|
];
|
|
}
|
|
}
|