PATH:
home
/
lab2454c
/
tripvare.com
/
vendor
/
cloudinary
/
cloudinary_php
/
src
/
Transformation
/
Border
<?php /** * This file is part of the Cloudinary PHP package. * * (c) Cloudinary * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Cloudinary\Transformation; use Cloudinary\ClassUtils; use Cloudinary\Transformation\Argument\ColorValue; /** * Class BorderValue */ class BorderValue extends QualifierMultiValue { const VALUE_DELIMITER = '_'; /** * @var array $argumentOrder The order of the arguments. */ protected $argumentOrder = ['width', 'style', 'color']; /** * BorderValue constructor. * * @param null $color * @param null $width * @param null $style */ public function __construct($color = null, $width = null, $style = null) { parent::__construct(); $this->width($width); $this->style($style); $this->color($color); } /** * Sets the style of the border. * * @param string $style The border style. Currently only "solid" is supported. * * @return $this */ public function style($style) { return $this->setSimpleValue('style', $style); } /** * Sets the width of the border. * * @param int $width The width of the border in pixels. * * @return $this */ public function width($width) { return $this->setSimpleValue('width', $width ? "{$width}px" : $width); } /** * Sets the color of the border. * * @param string $color The border color. * * @return $this * * @see Color */ public function color($color) { return $this->setSimpleValue('$color', ClassUtils::verifyInstance($color, ColorValue::class)); } }
[-] BorderQualifier.php
[edit]
[+]
..
[-] Border.php
[edit]
[-] BorderQualifierTrait.php
[edit]
[-] BorderValue.php
[edit]
[-] BorderStyleTrait.php
[edit]