data = apply_filters( 'sportspress_formats', array( 'event' => array( 'league' => __( 'League', 'sportspress' ), 'friendly' => __( 'Friendly', 'sportspress' ), ), 'calendar' => array( 'calendar' => __( 'Calendar', 'sportspress' ), 'list' => __( 'List', 'sportspress' ), 'blocks' => __( 'Blocks', 'sportspress' ), ), 'list' => array( 'list' => __( 'List', 'sportspress' ), 'gallery' => __( 'Gallery', 'sportspress' ), ), )); } public function __get( $key ) { return ( array_key_exists( $key, $this->data ) ? $this->data[ $key ] : null ); } public function __set( $key, $value ){ $this->data[ $key ] = $value; } }