Shortcode_Button::__get PHP Method

__get() public method

Magic getter for our object.
Since: 0.1.0
public __get ( string $property ) : mixed
$property string Object property to retrieve
return mixed
    public function __get($property)
    {
        switch ($property) {
            case 'button_data':
            case 'args':
            case 'handle':
            case 'button_slug':
                return $this->{$property};
            default:
                throw new Exception('Invalid ' . __CLASS__ . ' property: ' . $property);
        }
    }