PHP Class app\models\Vendor

Inheritance: extends EntityModel, use trait Laracasts\Presenter\PresentableTrait, use trait Illuminate\Database\Eloquent\SoftDeletes
Mostra file Open project: hillelcoren/invoice-ninja Class Usage Examples

Public Properties

Property Type Description
$fieldAddress1 string
$fieldAddress2 string
$fieldCity string
$fieldCountry string
$fieldName string
$fieldNotes string
$fieldPhone string
$fieldPostalCode string
$fieldState string

Protected Properties

Property Type Description
$dates array
$fillable array
$presenter string

Public Methods

Method Description
account ( ) : BelongsTo
addVendorContact ( $data, boolean $isPrimary = false ) : Model
country ( ) : BelongsTo
currency ( ) : BelongsTo
expenses ( ) : Illuminate\Database\Eloquent\Relations\HasMany
getCityState ( ) : string
getCurrencyId ( ) : mixed
getDateCreated ( ) : string
getDisplayName ( ) : mixed
getEntityType ( ) : string
getImportColumns ( ) : array
getImportMap ( ) : array
getName ( ) : mixed
getRoute ( ) : string
getTotalExpense ( ) : float | integer
hasAddress ( ) : boolean
industry ( ) : BelongsTo
language ( ) : BelongsTo
payments ( ) : Illuminate\Database\Eloquent\Relations\HasMany
size ( ) : BelongsTo
user ( ) : mixed
vendor_contacts ( ) : Illuminate\Database\Eloquent\Relations\HasMany

Method Details

account() public method

public account ( ) : BelongsTo
return Illuminate\Database\Eloquent\Relations\BelongsTo

addVendorContact() public method

public addVendorContact ( $data, boolean $isPrimary = false ) : Model
$data
$isPrimary boolean
return Illuminate\Database\Eloquent\Model

country() public method

public country ( ) : BelongsTo
return Illuminate\Database\Eloquent\Relations\BelongsTo

currency() public method

public currency ( ) : BelongsTo
return Illuminate\Database\Eloquent\Relations\BelongsTo

expenses() public method

public expenses ( ) : Illuminate\Database\Eloquent\Relations\HasMany
return Illuminate\Database\Eloquent\Relations\HasMany

getCityState() public method

public getCityState ( ) : string
return string

getCurrencyId() public method

public getCurrencyId ( ) : mixed
return mixed

getDateCreated() public method

public getDateCreated ( ) : string
return string

getDisplayName() public method

public getDisplayName ( ) : mixed
return mixed

getEntityType() public method

public getEntityType ( ) : string
return string

getImportColumns() public static method

public static getImportColumns ( ) : array
return array

getImportMap() public static method

public static getImportMap ( ) : array
return array

getName() public method

public getName ( ) : mixed
return mixed

getRoute() public method

public getRoute ( ) : string
return string

getTotalExpense() public method

public getTotalExpense ( ) : float | integer
return float | integer

hasAddress() public method

public hasAddress ( ) : boolean
return boolean

industry() public method

public industry ( ) : BelongsTo
return Illuminate\Database\Eloquent\Relations\BelongsTo

language() public method

public language ( ) : BelongsTo
return Illuminate\Database\Eloquent\Relations\BelongsTo

payments() public method

public payments ( ) : Illuminate\Database\Eloquent\Relations\HasMany
return Illuminate\Database\Eloquent\Relations\HasMany

size() public method

public size ( ) : BelongsTo
return Illuminate\Database\Eloquent\Relations\BelongsTo

user() public method

public user ( ) : mixed
return mixed

vendor_contacts() public method

public vendor_contacts ( ) : Illuminate\Database\Eloquent\Relations\HasMany
return Illuminate\Database\Eloquent\Relations\HasMany

Property Details

$dates protected_oe property

protected array $dates
return array

$fieldAddress1 public_oe static_oe property

public static string $fieldAddress1
return string

$fieldAddress2 public_oe static_oe property

public static string $fieldAddress2
return string

$fieldCity public_oe static_oe property

public static string $fieldCity
return string

$fieldCountry public_oe static_oe property

public static string $fieldCountry
return string

$fieldName public_oe static_oe property

public static string $fieldName
return string

$fieldNotes public_oe static_oe property

public static string $fieldNotes
return string

$fieldPhone public_oe static_oe property

public static string $fieldPhone
return string

$fieldPostalCode public_oe static_oe property

public static string $fieldPostalCode
return string

$fieldState public_oe static_oe property

public static string $fieldState
return string

$fillable protected_oe property

protected array $fillable
return array

$presenter protected_oe property

protected string $presenter
return string