prefix = $prefix; foreach ( $attributes as $key => $value ) { $this->{$key} = $value; } static::$plugins_import[ $prefix ] = $this; } public static function get( $prefix = 'all' ) { if ( $prefix === 'all' ) { return static::$plugins_import; } else { return static::$plugins_import[ $prefix ]; } } }