Subversion Repositories oidplus

Rev

Rev 1121 | Rev 1417 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1121 Rev 1130
Line 22... Line 22...
22
// phpcs:disable PSR1.Files.SideEffects
22
// phpcs:disable PSR1.Files.SideEffects
23
\defined('INSIDE_OIDPLUS') or die;
23
\defined('INSIDE_OIDPLUS') or die;
24
// phpcs:enable PSR1.Files.SideEffects
24
// phpcs:enable PSR1.Files.SideEffects
25
 
25
 
26
class OIDplusDomain extends OIDplusObject {
26
class OIDplusDomain extends OIDplusObject {
-
 
27
        /**
-
 
28
         * @var string
-
 
29
         */
27
        private $domain;
30
        private $domain;
28
 
31
 
29
        /**
32
        /**
30
         * @param string $domain
33
         * @param string $domain
31
         */
34
         */
Line 199... Line 202...
199
 
202
 
200
                return self::parse(self::ns().':'.$oid_up);
203
                return self::parse(self::ns().':'.$oid_up);
201
        }
204
        }
202
 
205
 
203
        /**
206
        /**
204
         * @param $to
207
         * @param OIDplusObject|string $to
205
         * @return int|null
208
         * @return int|null
206
         */
209
         */
207
        public function distance($to) {
210
        public function distance($to) {
208
                if (!is_object($to)) $to = OIDplusObject::parse($to);
211
                if (!is_object($to)) $to = OIDplusObject::parse($to);
209
                if (!$to) return null;
212
                if (!$to) return null;