src/Budkit/Helper/Object.php
public function get($property, $default = null)
    {

        //if its an array of properties;
        if (is_array($property)) {
            $values = array();

            foreach ($property as $key => $prop) {
                if (isset($this->$prop)) {
                    $values[$prop] = $this->$prop;
                }
            }
            return (!empty($values)) ? $values : $default;
        }

        if (isset($this->$property)) {
            return $this->$property;
        }
        return $default;
    }
public function get($property, $default = null)
    {

        //if its an array of properties;
        if (is_array($property)) {
            $values = array();

            foreach ($property as $key => $prop) {
                if (isset($this->$prop)) {
                    $values[$prop] = $this->$prop;
                }
            }
            return (!empty($values)) ? $values : $default;
        }

        if (isset($this->$property)) {
            return $this->$property;
        }
        return $default;
    }
public function get ( $ property , $ default = null ) { //if its an array of properties; if ( is_array ( $ property ) ) { $ values = array ( ) ; foreach ( $ property as $ key => $ prop ) { if ( isset ( $ this -> $ prop ) ) { $ values [ $ prop ] = $ this -> $ prop ; } } return ( ! empty ( $ values ) ) ? $ values : $ default ; } if ( isset ( $ this -> $ property ) ) { return $ this -> $ property ; } return $ default ; }
Get a protected object property

@param string $property
@param mixed $default
@return mixed
Get a protected object property