Server IP : 170.150.155.74 / Your IP : 18.219.94.100 Web Server : Apache/2.4.53 (Debian) System : Linux b22bf132354b 5.4.0-162-generic #179-Ubuntu SMP Mon Aug 14 08:51:31 UTC 2023 x86_64 User : www-data ( 33) PHP Version : 7.4.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/plugins/wordpress-seo/src/analytics/domain/ |
Upload File : |
<?php namespace Yoast\WP\SEO\Analytics\Domain; /** * A collection domain object. */ class Missing_Indexable_Bucket { /** * All the missing indexable count objects. * * @var array<Missing_Indexable_Count> */ private $missing_indexable_counts; /** * The constructor. */ public function __construct() { $this->missing_indexable_counts = []; } /** * Adds a missing indexable count object to this bucket. * * @param Missing_Indexable_Count $missing_indexable_count The missing indexable count object. * * @return void */ public function add_missing_indexable_count( Missing_Indexable_Count $missing_indexable_count ): void { $this->missing_indexable_counts[] = $missing_indexable_count; } /** * Returns the array representation of all indexable counts. * * @return array */ public function to_array() { return \array_map( static function ( $item ) { return $item->to_array(); }, $this->missing_indexable_counts ); } }