Verzeichnisstruktur phpBB-3.1.0


Veröffentlicht
27.10.2014

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

Credentials.php

Zuletzt modifiziert: 09.10.2024, 12:58 - Dateigröße: 1.01 KiB


01  <?php
02  namespace OAuth\Common\Consumer;
03   
04  /**
05   * Value object for the credentials of an OAuth service.
06   */
07  class Credentials
08  {
09      /**
10       * @var string
11       */
12      protected $consumerId;
13   
14      /**
15       * @var string
16       */
17      protected $consumerSecret;
18   
19      /**
20       * @var string
21       */
22      protected $callbackUrl;
23   
24   
25      /**
26       * @param string $consumerId
27       * @param string $consumerSecret
28       * @param string $callbackUrl
29       */
30      public function __construct($consumerId, $consumerSecret, $callbackUrl)
31      {
32          $this->consumerId = $consumerId;
33          $this->consumerSecret = $consumerSecret;
34          $this->callbackUrl = $callbackUrl;
35      }
36   
37      /**
38       * @return string
39       */
40      public function getCallbackUrl()
41      {
42          return $this->callbackUrl;
43      }
44   
45      /**
46       * @return string
47       */
48      public function getConsumerId()
49      {
50          return $this->consumerId;
51      }
52   
53      /**
54       * @return string
55       */
56      public function getConsumerSecret()
57      {
58          return $this->consumerSecret;
59      }
60  }
61