PATH:
home
/
lab2454c
/
tripvare.com
/
vendor
/
cloudinary
/
cloudinary_php
/
src
/
Transformation
/
Positioning
/
Gravity
<?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\Transformation\Qualifier\BaseQualifier; /** * Class AutoGravityObject * * @internal */ class AutoGravityObject extends QualifierMultiValue { const VALUE_DELIMITER = '_'; /** * @var array $argumentOrder The order of the arguments. */ protected $argumentOrder = ['gravity', 'avoid', 'weight']; /** * AutoGravityObject constructor. * * @param string $gravity The AutoGravityObject */ public function __construct($gravity) { parent::__construct(); $this->gravity($gravity); } /** * Sets the object gravity. * * @param $gravity * * @return $this */ public function gravity($gravity) { if ($gravity instanceof BaseQualifier) { $gravity = $gravity->getValue(); } return $this->setSimpleValue('gravity', $gravity); } /** * Whether to avoid the object. * * @return $this */ public function avoid() { return $this->setSimpleValue('avoid', 'avoid'); } /** * Sets the object weight. * * @param int $weight The weight of the object. * * @return $this */ public function weight($weight) { return $this->setSimpleValue('weight', $weight); } }
[+]
..
[-] Gravity.php
[edit]
[-] CompassGravityBuilderTrait.php
[edit]
[+]
ObjectGravity
[-] FocalGravity.php
[edit]
[-] AutoGravity.php
[edit]
[-] LiquidRescaling.php
[edit]
[-] FocalGravityInterface.php
[edit]
[-] FocalGravityBuilderTrait.php
[edit]
[-] AutoGravityBuilderTrait.php
[edit]
[-] Compass.php
[edit]
[-] AutoGravityObject.php
[edit]
[-] CompassGravity.php
[edit]
[-] GravityQualifierTrait.php
[edit]
[-] GravityQualifier.php
[edit]