private function populate(array $row) { $x = new Feeding(); $x->setId($row['id']); $x->setBreastLeft($row['breast_left']); $x->setBreastRight($row['breast_right']); $x->setMilking($row['milking']); $x->setPee($row['pee']); $x->setPoo($row['poo']); $x->setDateTime(new DateTime($row['date_time'])); $x->setStatus($row['status']); if (!empty($row['bottle'])) { $bottle = new Bottle(Bottle::TYPE_MILK, 0); $bottle->decode($row['bottle']); $x->setBottle($bottle); } return $x; }
function PressurizedBottle($id) { Bottle::Bottle($id); }
public function __construct() { parent::__construct(90); }