- Move src/, tests/, bin/, generated/, proto/, composer.json, composer.lock, phpunit.xml from php/ to repo root - Move ref/ to doc/reference_samples/ for better organization - Remove vendor/ from git tracking (now properly gitignored) - Update all test file paths (dirname adjustments and ref/ -> doc/reference_samples/) - Update all documentation paths (AGENTS.md, doc/*.md) - Remove php.bak/ directory - All 252 tests pass
114 lines
2.9 KiB
PHP
114 lines
2.9 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: timers.proto
|
|
|
|
namespace Rv\Data\Clock;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>rv.data.Clock.Format</code>
|
|
*/
|
|
class Format extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Clock.Format.DateFormatterStyle date_type = 2;</code>
|
|
*/
|
|
protected $date_type = 0;
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Clock.Format.DateFormatterStyle time_format = 3;</code>
|
|
*/
|
|
protected $time_format = 0;
|
|
/**
|
|
* Generated from protobuf field <code>bool military_time_enabled = 4;</code>
|
|
*/
|
|
protected $military_time_enabled = false;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type int $date_type
|
|
* @type int $time_format
|
|
* @type bool $military_time_enabled
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\Timers::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Clock.Format.DateFormatterStyle date_type = 2;</code>
|
|
* @return int
|
|
*/
|
|
public function getDateType()
|
|
{
|
|
return $this->date_type;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Clock.Format.DateFormatterStyle date_type = 2;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setDateType($var)
|
|
{
|
|
GPBUtil::checkEnum($var, \Rv\Data\Clock\Format\DateFormatterStyle::class);
|
|
$this->date_type = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Clock.Format.DateFormatterStyle time_format = 3;</code>
|
|
* @return int
|
|
*/
|
|
public function getTimeFormat()
|
|
{
|
|
return $this->time_format;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Clock.Format.DateFormatterStyle time_format = 3;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setTimeFormat($var)
|
|
{
|
|
GPBUtil::checkEnum($var, \Rv\Data\Clock\Format\DateFormatterStyle::class);
|
|
$this->time_format = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool military_time_enabled = 4;</code>
|
|
* @return bool
|
|
*/
|
|
public function getMilitaryTimeEnabled()
|
|
{
|
|
return $this->military_time_enabled;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>bool military_time_enabled = 4;</code>
|
|
* @param bool $var
|
|
* @return $this
|
|
*/
|
|
public function setMilitaryTimeEnabled($var)
|
|
{
|
|
GPBUtil::checkBool($var);
|
|
$this->military_time_enabled = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|