コード例 #1
0
ファイル: HttpStatusCode.php プロジェクト: bapcat/values
 protected function __construct($key, $code, $text)
 {
     parent::__construct($key);
     $this->code = $code;
     $this->text = $text;
 }
コード例 #2
0
 /**
  * @param string  $key
  * @param string  $letterCode
  * @param integer $numberCode
  */
 protected function __construct($key, $letterCode, $numberCode)
 {
     parent::__construct($key);
     $this->letterCode = $letterCode;
     $this->numberCode = $numberCode;
 }
コード例 #3
0
ファイル: TimePrefix.php プロジェクト: chabior/jtimer
 /**
  * 
  * @param string $key
  * @param string $inputPrefix
  * @param string $intervalPrefix
  * @param string $name
  * @param boolean $isTime
  */
 protected function __construct($key, $inputPrefix, $intervalPrefix, $name, $isTime)
 {
     parent::__construct($key);
     $this->inputPrefix = $inputPrefix;
     $this->intervalPrefix = $intervalPrefix;
     $this->name = $name;
     $this->isTime = $isTime;
 }
コード例 #4
0
 /**
  * Construct and register a new value multiton member.
  *
  * @api
  *
  * @param string $key   The string key to associate with this member.
  * @param mixed  $value The value of this member.
  *
  * @throws ExtendsConcreteException If the constructed member has an invalid inheritance hierarchy.
  */
 protected function __construct($key, $value)
 {
     parent::__construct($key);
     $this->value = $value;
 }