PHP Class App\Ninja\Import\BaseTransformer

Inheritance: extends League\Fractal\TransformerAbstract
Show file Open project: hillelcoren/invoice-ninja

Protected Properties

Property Type Description
$maps

Public Methods

Method Description
__construct ( $maps ) BaseTransformer constructor.
getExpenseCategoryId ( $name ) : null
getVendorId ( $name ) : null

Protected Methods

Method Description
getClientId ( $name ) : null
getCountryId ( $name ) : null
getCountryIdBy2 ( $name ) : null
getDate ( $date, string $format = 'Y-m-d' ) : null
getFirstName ( $name ) : mixed
getInvoiceClientId ( $invoiceNumber ) : null
getInvoiceId ( $invoiceNumber ) : null
getInvoiceNumber ( $number ) : string
getLastName ( $name ) : mixed
getNumber ( $data, $field ) : integer
getProductId ( $name ) : null
getString ( $data, $field ) : string
hasClient ( $name ) : boolean
hasInvoice ( $invoiceNumber ) : boolean
hasProduct ( $key ) : boolean

Method Details

__construct() public method

BaseTransformer constructor.
public __construct ( $maps )
$maps

getClientId() protected method

protected getClientId ( $name ) : null
$name
return null

getCountryId() protected method

protected getCountryId ( $name ) : null
$name
return null

getCountryIdBy2() protected method

protected getCountryIdBy2 ( $name ) : null
$name
return null

getDate() protected method

protected getDate ( $date, string $format = 'Y-m-d' ) : null
$date
$format string
return null

getExpenseCategoryId() public method

public getExpenseCategoryId ( $name ) : null
$name
return null

getFirstName() protected method

protected getFirstName ( $name ) : mixed
$name
return mixed

getInvoiceClientId() protected method

protected getInvoiceClientId ( $invoiceNumber ) : null
$invoiceNumber
return null

getInvoiceId() protected method

protected getInvoiceId ( $invoiceNumber ) : null
$invoiceNumber
return null

getInvoiceNumber() protected method

protected getInvoiceNumber ( $number ) : string
$number
return string

getLastName() protected method

protected getLastName ( $name ) : mixed
$name
return mixed

getNumber() protected method

protected getNumber ( $data, $field ) : integer
$data
$field
return integer

getProductId() protected method

protected getProductId ( $name ) : null
$name
return null

getString() protected method

protected getString ( $data, $field ) : string
$data
$field
return string

getVendorId() public method

public getVendorId ( $name ) : null
$name
return null

hasClient() protected method

protected hasClient ( $name ) : boolean
$name
return boolean

hasInvoice() protected method

protected hasInvoice ( $invoiceNumber ) : boolean
$invoiceNumber
return boolean

hasProduct() protected method

protected hasProduct ( $key ) : boolean
$key
return boolean

Property Details

$maps protected property

protected $maps