Resource Description for MotorVehicle

Properties for MotorVehicle

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
colour string
model string
motorVehicleMake MotorVehicleMake
motorVehicleType string
owner mixed
parkingAllocationProvided bool
registrationNumber string

SDK Example for PHP

<?PHP

use Arbor\Api\Gateway\RestGateway;
use Arbor\Model\ModelBase;
use Arbor\Model\MotorVehicle;

ModelBase::setDefaultGateway(
    new RestGateway(
        "https://my-school.arbor.sc/rest-v2",
        "my.username@my-school.arbor.sc",
        "3bh54435v3gh45"
    )
);

$motorVehicle = MotorVehicle::retrieve(5433);

$owner = $motorVehicle->getOwner();
$motorVehicleType = $motorVehicle->getMotorVehicleType();
$motorVehicleMake = $motorVehicle->getMotorVehicleMake();
$model = $motorVehicle->getModel();
$colour = $motorVehicle->getColour();
$registrationNumber = $motorVehicle->getRegistrationNumber();
$parkingAllocationProvided = $motorVehicle->getParkingAllocationProvided();

 

Related Resources

See also: MotorVehicleMake