PhpBrew\Machine::detectProcessorNumber PHP Method

detectProcessorNumber() public method

    public function detectProcessorNumber()
    {
        if ($this->processorNumber) {
            return $this->processorNumber;
        }
        if ($this->processorNumber = $this->detectProcessorNumberByNproc()) {
            return $this->processorNumber;
        }
        if ($this->processorNumber = $this->detectProcessorNumberByGrep()) {
            return $this->processorNumber;
        }
        return;
    }