vendredi 31 juillet 2015

find out a class variable's defined scope (from within the class)

Given:

class myClass extends \Phalcon\Mvc\Model
{
    public $a;
    protected $b;
    private $c;
}

How can I test that $a is public, $b is protected, and $c is private from within myClass?





Aucun commentaire:

Enregistrer un commentaire