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/public_html/core/vendor/intervention/image/src/Interfaces/ResolutionInterface.php
<?php

declare(strict_types=1);

namespace Intervention\Image\Interfaces;

interface ResolutionInterface
{
    /**
     * Return resolution of x-axis
     *
     * @return float
     */
    public function x(): float;

    /**
     * Set resolution on x-axis
     *
     * @param float $x
     * @return ResolutionInterface
     */
    public function setX(float $x): self;

    /**
     * Return resolution on y-axis
     *
     * @return float
     */
    public function y(): float;

    /**
     * Set resolution on y-axis
     *
     * @param float $y
     * @return ResolutionInterface
     */
    public function setY(float $y): self;

    /**
     * Convert the resolution to DPI
     *
     * @return ResolutionInterface
     */
    public function perInch(): self;

    /**
     * Convert the resolution to DPCM
     *
     * @return ResolutionInterface
     */
    public function perCm(): self;

    /**
     * Return string representation of unit
     *
     * @return string
     */
    public function unit(): string;

    /**
     * Transform object to string
     *
     * @return string
     */
    public function toString(): string;

    /**
     * Cast object to string
     *
     * @return string
     */
    public function __toString(): string;
}