- 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
141 lines
3.5 KiB
PHP
141 lines
3.5 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
# source: graphicsData.proto
|
|
|
|
namespace Rv\Data\Graphics;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>rv.data.Graphics.Gradient</code>
|
|
*/
|
|
class Gradient extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Gradient.Type type = 1;</code>
|
|
*/
|
|
protected $type = 0;
|
|
/**
|
|
* Generated from protobuf field <code>double angle = 2;</code>
|
|
*/
|
|
protected $angle = 0.0;
|
|
/**
|
|
* Generated from protobuf field <code>double length = 3;</code>
|
|
*/
|
|
protected $length = 0.0;
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Graphics.Gradient.ColorStop stops = 4;</code>
|
|
*/
|
|
private $stops;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type int $type
|
|
* @type float $angle
|
|
* @type float $length
|
|
* @type array<\Rv\Data\Graphics\Gradient\ColorStop>|\Google\Protobuf\Internal\RepeatedField $stops
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\GraphicsData::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Gradient.Type type = 1;</code>
|
|
* @return int
|
|
*/
|
|
public function getType()
|
|
{
|
|
return $this->type;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.rv.data.Graphics.Gradient.Type type = 1;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setType($var)
|
|
{
|
|
GPBUtil::checkEnum($var, \Rv\Data\Graphics\Gradient\Type::class);
|
|
$this->type = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double angle = 2;</code>
|
|
* @return float
|
|
*/
|
|
public function getAngle()
|
|
{
|
|
return $this->angle;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double angle = 2;</code>
|
|
* @param float $var
|
|
* @return $this
|
|
*/
|
|
public function setAngle($var)
|
|
{
|
|
GPBUtil::checkDouble($var);
|
|
$this->angle = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double length = 3;</code>
|
|
* @return float
|
|
*/
|
|
public function getLength()
|
|
{
|
|
return $this->length;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>double length = 3;</code>
|
|
* @param float $var
|
|
* @return $this
|
|
*/
|
|
public function setLength($var)
|
|
{
|
|
GPBUtil::checkDouble($var);
|
|
$this->length = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Graphics.Gradient.ColorStop stops = 4;</code>
|
|
* @return \Google\Protobuf\Internal\RepeatedField
|
|
*/
|
|
public function getStops()
|
|
{
|
|
return $this->stops;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>repeated .rv.data.Graphics.Gradient.ColorStop stops = 4;</code>
|
|
* @param array<\Rv\Data\Graphics\Gradient\ColorStop>|\Google\Protobuf\Internal\RepeatedField $var
|
|
* @return $this
|
|
*/
|
|
public function setStops($var)
|
|
{
|
|
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Rv\Data\Graphics\Gradient\ColorStop::class);
|
|
$this->stops = $arr;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|