Tribe__Tickets__Ticket_Object::__get( string $var )

Magic getter to handle fetching protected properties


Parameters

$var

(string) (Required) Property to fetch.


Top ↑

Return

(mixed) Value of the property.


Top ↑

Source

File: src/Tribe/Ticket_Object.php

		public function __get( $var ) {
			switch ( $var ) {
				case 'stock':
					return $this->stock();
					break;
				case 'qty_pending':
					return $this->qty_pending();
					break;
				case 'qty_sold':
					return $this->qty_sold();
					break;
				case 'qty_refunded':
					return $this->qty_refunded();
					break;
				case 'qty_completed':
					return $this->qty_completed();
					break;
				case 'qty_cancelled':
					return $this->qty_cancelled();
					break;
				case 'type':
					return $this->type();
					break;
			}

			return null;
		}