/** * Singleton. * * @return \Podlove\Model\Podcast */ public static function get_instance() { if (!isset(self::$instance)) { self::$instance = new self(); } return self::$instance; }
/** * Define a property with by name. * * @param string $name Name of the property / column */ public static function property($name) { if (!isset(self::$properties)) { self::$properties = []; } array_push(self::$properties, ['name' => $name]); }