PATH:
home
/
lab2454c
/
tripvare.com
/
backup
/
vendor
/
cloudinary
/
cloudinary_php
/
src
/
Transformation
/
Rotation
<?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\AngleTrait; use Cloudinary\Transformation\Argument\Degree; use Cloudinary\Transformation\Argument\RotationModeTrait; /** * Rotates or flips an image or video by the specified number of degrees, or automatically (images only) according to * its orientation or available metadata. * * **Learn more**: * <a href=https://cloudinary.com/documentation/image_transformations#rotating_images * target="_blank">Rotating images</a> | * <a href=https://cloudinary.com/documentation/video_manipulation_and_delivery#rotating_videos * target="_blank">Rotating videos</a> * * * @api */ class Rotate extends BaseAction { use AngleTrait; use RotationModeTrait; /** * Rotate constructor. * * @param mixed $degree The degrees of the angle. */ public function __construct(...$degree) { parent::__construct(ClassUtils::verifyVarArgsInstance($degree, Angle::class)); } /** * Sets the rotation angle. * * @param mixed $degree The degrees of the angle. */ public function setAngle(...$degree) { $this->addQualifier(Degree::byAngle(...$degree)); } /** * Named constructor. * * @param mixed $degree The degree of the angle. * * @return static */ protected static function createWithDegree(...$degree) { return new static(Angle::byAngle(...$degree)); } /** * Named constructor. * * @param mixed $mode The rotation mode. * * @return static */ protected static function createWithMode(...$mode) { return new static(Angle::mode(...$mode)); } }
[-] AngleQualifierTrait.php
[edit]
[-] Angle.php
[edit]
[+]
..
[-] RotationModeTrait.php
[edit]
[-] Rotate.php
[edit]
[-] AngleTrait.php
[edit]
[-] RotationMode.php
[edit]
[-] Degree.php
[edit]