PHP 클래스 Identicon\Generator\BaseGenerator

저자: Benjamin Laugueux ([email protected])
파일 보기 프로젝트 열기: yzalis/identicon

보호된 프로퍼티들

프로퍼티 타입 설명
$backgroundColor array
$color array
$generatedImage mixed
$pixelRatio integer
$size integer

공개 메소드들

메소드 설명
getArrayOfSquare ( ) : array
getBackgroundColor ( ) : array Get the background color.
getColor ( ) : array Get the color.
getHash ( ) : string Get the identicon string hash.
getPixelRatio ( ) : integer Get the pixel ratio.
getSize ( ) : integer Get the image size.
setBackgroundColor ( string | array $backgroundColor ) Set the image background color.
setColor ( string | array $color ) Set the image color.
setSize ( integer $size ) Set the image size.
setString ( string $string ) Generate a hash from the original string.

비공개 메소드들

메소드 설명
convertColor ( array | string $color ) : array
convertHashToArrayOfBoolean ( ) Convert the hash into an multidimensional array of boolean.
convertHexaToBoolean ( string $hexa ) : boolean Convert an hexadecimal number into a boolean.

메소드 상세

getArrayOfSquare() 공개 메소드

public getArrayOfSquare ( ) : array
리턴 array

getBackgroundColor() 공개 메소드

Get the background color.
public getBackgroundColor ( ) : array
리턴 array

getColor() 공개 메소드

Get the color.
public getColor ( ) : array
리턴 array

getHash() 공개 메소드

Get the identicon string hash.
public getHash ( ) : string
리턴 string

getPixelRatio() 공개 메소드

Get the pixel ratio.
public getPixelRatio ( ) : integer
리턴 integer

getSize() 공개 메소드

Get the image size.
public getSize ( ) : integer
리턴 integer

setBackgroundColor() 공개 메소드

Set the image background color.
public setBackgroundColor ( string | array $backgroundColor )
$backgroundColor string | array The color in hexa (3 or 6 chars) or rgb array

setColor() 공개 메소드

Set the image color.
public setColor ( string | array $color )
$color string | array The color in hexa (3 or 6 chars) or rgb array

setSize() 공개 메소드

Set the image size.
public setSize ( integer $size )
$size integer

setString() 공개 메소드

Generate a hash from the original string.
public setString ( string $string )
$string string

프로퍼티 상세

$backgroundColor 보호되어 있는 프로퍼티

protected array $backgroundColor
리턴 array

$color 보호되어 있는 프로퍼티

protected array $color
리턴 array

$generatedImage 보호되어 있는 프로퍼티

protected mixed $generatedImage
리턴 mixed

$pixelRatio 보호되어 있는 프로퍼티

protected int $pixelRatio
리턴 integer

$size 보호되어 있는 프로퍼티

protected int $size
리턴 integer