Location: PHPKode > scripts > Quickload > quickload/example/classes/Motorbike.class.php
<?php

class Motorbike
{

    public $model;
    public $isStarted;

    private $kickCount;


    public function __construct($model)
    {
        $this->model = $model;
        $this->isStarted = false;
        $this->kickCount = 0;
    }

    public function kickstart()
    {
        $this->kickCount++;

        if($this->kickCount >= 3)
        {
            $this->isStarted = true;
            echo "kick - wroaaaaarrrrr...";
        }
        else
        {
            echo "kick - zt.";
        }
    }
}

?>
Return current item: Quickload