src/Util/System/Windows.php
protected function getDimension($key)
    {
        $index      = array_search($key, ['height', 'width']);
        $dimensions = $this->getDimensions();

        return (!empty($dimensions[$index])) ? $dimensions[$index] : null;
    }
protected function getDimension($key)
    {
        $index      = array_search($key, ['height', 'width']);
        $dimensions = $this->getDimensions();

        return (!empty($dimensions[$index])) ? $dimensions[$index] : null;
    }
protected function getDimension ( $ key ) { $ index = array_search ( $ key , [ 'height' , 'width' ] ) ; $ dimensions = $ this -> getDimensions ( ) ; return ( ! empty ( $ dimensions [ $ index ] ) ) ? $ dimensions [ $ index ] : null ; }
Get specified terminal dimension

@param string $key

@return integer|null
Get specified terminal dimension