public function getSharesTotal($url) { $shares = 0; foreach ($this->providers as $providerName => $provider) { $shares += $this->getShares($providerName, $url); } return $shares; }