HEX
Server: LiteSpeed
System: Linux srv1.dhviews.com 5.14.0-570.23.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jun 24 11:27:16 EDT 2025 x86_64
User: bdedition (1723)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //home/bdedition/www/core/vendor/intervention/image/src/Interfaces/DrawableFactoryInterface.php
<?php

declare(strict_types=1);

namespace Intervention\Image\Interfaces;

use Closure;

interface DrawableFactoryInterface
{
    /**
     * Create a new factory instance statically
     *
     * @param null|Closure|DrawableInterface $init
     * @return DrawableFactoryInterface
     */
    public static function init(null|Closure|DrawableInterface $init = null): self;

    /**
     * Create the end product of the factory
     *
     * @return DrawableInterface
     */
    public function create(): DrawableInterface;

    /**
     * Create the end product by invoking the factory
     *
     * @return DrawableInterface
     */
    public function __invoke(): DrawableInterface;

    /**
     * Define the background color of the drawable object
     *
     * @param mixed $color
     * @return DrawableFactoryInterface
     */
    public function background(mixed $color): self;

    /**
     * Set the border size & color of the drawable object to be produced
     *
     * @param mixed $color
     * @param int $size
     * @return DrawableFactoryInterface
     */
    public function border(mixed $color, int $size = 1): self;
}