Файл: vendor/intervention/image/src/Geometry/Factories/Drawable.php
Строк: 102
<?php
declare(strict_types=1);
namespace InterventionImageGeometryFactories;
use InterventionImageExceptionsInvalidArgumentException;
use InterventionImageGeometryBezier;
use InterventionImageGeometryCircle;
use InterventionImageGeometryEllipse;
use InterventionImageGeometryLine;
use InterventionImageGeometryPolygon;
use InterventionImageGeometryRectangle;
class Drawable
{
/**
* Create Bezier statically.
*
* @throws InvalidArgumentException
*/
public static function bezier(null|callable|Bezier $bezier = null): Bezier
{
return BezierFactory::build($bezier);
}
/**
* Create Circle statically.
*
* @throws InvalidArgumentException
*/
public static function circle(null|callable|Circle $circle = null): Circle
{
return CircleFactory::build($circle);
}
/**
* Create Ellipse statically.
*
* @throws InvalidArgumentException
*/
public static function ellipse(null|callable|Ellipse $ellipse = null): Ellipse
{
return EllipseFactory::build($ellipse);
}
/**
* Create Line statically.
*
* @throws InvalidArgumentException
*/
public static function line(null|callable|Line $line = null): Line
{
return LineFactory::build($line);
}
/**
* Create Polygon statically.
*
* @throws InvalidArgumentException
*/
public static function polygon(null|callable|Polygon $polygon = null): Polygon
{
return PolygonFactory::build($polygon);
}
/**
* Create Rectangle statically.
*
* @throws InvalidArgumentException
*/
public static function rectangle(null|callable|Rectangle $rectangle = null): Rectangle
{
return RectangleFactory::build($rectangle);
}
}