Piwik\Measurable\Type::isType PHP Метод

isType() публичный Метод

public isType ( $typeId )
    public function isType($typeId)
    {
        // here we should add some point also check whether id matches any extended ID. Eg if
        // MetaSites extends Websites, then we expected $metaSite->isType('website') to be true (maybe)
        return $this->getId() === $typeId;
    }