PHP Class Ptondereau\PackMe\Package

Afficher le fichier Open project: ptondereau/laravel-packme Class Usage Examples

Protected Properties

Свойство Type Description
$author string Full author string. (e.g: John Smith ).
$authorName string Author's full name.
$description string Package's description.
$destination string Path destination for all generated files.
$email string Author's email.
$name string Full name of package. (e.g: vendor/package).
$package string Package name (e.g: YourPackage).
$validator Ptondereau\PackMe\Validators\Validator Validator for the package.
$vendor string Vendor name (e.g: YourVendor).

Méthodes publiques

Méthode Description
__construct ( null | string $name = null, null | string $author = null, null | string $destination = null, Validator $validator = null ) Package constructor.
getAuthor ( ) : string
getAuthorName ( ) : string
getDescription ( ) : string
getDestination ( ) : string
getEmail ( ) : string
getName ( ) : string
getPackage ( ) : string
getVendor ( ) : string
setAuthor ( string $author )
setAuthorName ( string $authorName )
setDescription ( string $description )
setDestination ( string $destination )
setEmail ( string $email )
setName ( string $name )
setPackage ( string $package )
setVendor ( string $vendor )
toArray ( ) : array Return keywords list.

Méthodes protégées

Méthode Description
parseAuthor ( $string )

Method Details

__construct() public méthode

Package constructor.
public __construct ( null | string $name = null, null | string $author = null, null | string $destination = null, Validator $validator = null )
$name null | string
$author null | string
$destination null | string
$validator Ptondereau\PackMe\Validators\Validator

getAuthor() public méthode

public getAuthor ( ) : string
Résultat string

getAuthorName() public méthode

public getAuthorName ( ) : string
Résultat string

getDescription() public méthode

public getDescription ( ) : string
Résultat string

getDestination() public méthode

public getDestination ( ) : string
Résultat string

getEmail() public méthode

public getEmail ( ) : string
Résultat string

getName() public méthode

public getName ( ) : string
Résultat string

getPackage() public méthode

public getPackage ( ) : string
Résultat string

getVendor() public méthode

public getVendor ( ) : string
Résultat string

parseAuthor() protected méthode

protected parseAuthor ( $string )
$string

setAuthor() public méthode

public setAuthor ( string $author )
$author string

setAuthorName() public méthode

public setAuthorName ( string $authorName )
$authorName string

setDescription() public méthode

public setDescription ( string $description )
$description string

setDestination() public méthode

public setDestination ( string $destination )
$destination string

setEmail() public méthode

public setEmail ( string $email )
$email string

setName() public méthode

public setName ( string $name )
$name string

setPackage() public méthode

public setPackage ( string $package )
$package string

setVendor() public méthode

public setVendor ( string $vendor )
$vendor string

toArray() public méthode

Return keywords list.
public toArray ( ) : array
Résultat array

Property Details

$author protected_oe property

Full author string. (e.g: John Smith ).
protected string $author
Résultat string

$authorName protected_oe property

Author's full name.
protected string $authorName
Résultat string

$description protected_oe property

Package's description.
protected string $description
Résultat string

$destination protected_oe property

Path destination for all generated files.
protected string $destination
Résultat string

$email protected_oe property

Author's email.
protected string $email
Résultat string

$name protected_oe property

Full name of package. (e.g: vendor/package).
protected string $name
Résultat string

$package protected_oe property

Package name (e.g: YourPackage).
protected string $package
Résultat string

$validator protected_oe property

Validator for the package.
protected Validator,Ptondereau\PackMe\Validators $validator
Résultat Ptondereau\PackMe\Validators\Validator

$vendor protected_oe property

Vendor name (e.g: YourVendor).
protected string $vendor
Résultat string