Cheetah
Main Page
Related Pages
Namespaces
Namespace List
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
$
a
b
c
d
e
f
h
i
l
m
o
p
r
s
t
u
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
plugins
intervention-image
Intervention
Image
Imagick
Shapes
CircleShape.php
Go to the documentation of this file.
1
<?
php
2
3
namespace
Intervention\Image\Imagick\Shapes
;
4
5
use \Intervention\Image\Image;
6
7
class
CircleShape
extends
EllipseShape
8
{
14
public
$diameter
= 100;
15
21
public
function
__construct
(
$diameter
=
null
)
22
{
23
$this->width = is_numeric(
$diameter
) ? intval(
$diameter
) :
$this->diameter
;
24
$this->height = is_numeric(
$diameter
) ? intval(
$diameter
) :
$this->diameter
;
25
$this->diameter = is_numeric(
$diameter
) ? intval(
$diameter
) :
$this->diameter
;
26
}
27
36
public
function
applyToImage
(
Image
$image, $x = 0, $y = 0)
37
{
38
return
parent::applyToImage($image, $x, $y);
39
}
40
}
Intervention\Image\Imagick\Shapes\CircleShape\__construct
__construct($diameter=null)
Definition:
CircleShape.php:21
Intervention\Image\Imagick\Shapes\EllipseShape
Definition:
EllipseShape.php:9
php
Intervention\Image\Imagick\Shapes
Definition:
CircleShape.php:3
Intervention\Image\Image
Definition:
Image.php:50
Intervention\Image\Imagick\Shapes\CircleShape
Definition:
CircleShape.php:8
Intervention\Image\Imagick\Shapes\CircleShape\applyToImage
applyToImage(Image $image, $x=0, $y=0)
Definition:
CircleShape.php:36
Intervention\Image\Imagick\Shapes\CircleShape\$diameter
$diameter
Definition:
CircleShape.php:14
Generated by
1.8.20