przewiń do treści

Symfony 2 od podstaw

Włodzimierz Gajda

class River
{

    ...

    /**
     * Set length
     *
     * @param integer $length
     */
    public function setLength($length)
    {
        $this->length = $length;
    }

    /**
     * Get length
     *
     * @return integer
     */
    public function getLength()
    {
        return $this->length;
    }
}

Listing 18.9. Wygenerowane metody getLength() oraz setLength()

Rozdział 18. ORM Doctrine 2

listing-18-09.txt

Reklama

Szkolenia z Symfony 2.1
©2012 Włodzimierz Gajda
ver. 1.0.1