protected function calculateMode($class)
    {
        foreach ($this->modeArray as $constant) {
            $this->mode = $this->mode | constant($class.'::'.$constant);
        }

        return $this;
    }