public function setBlock($block)
    {
        if (!empty($block) && $block <= 4 && $block !== 0 && !($block < 0)) {
            $this->block = $block;
        }
    }
public function setBlock($block)
    {
        if (!empty($block) && $block <= 4 && $block !== 0 && !($block < 0)) {
            $this->block = $block;
        }
    }
public function setBlock ( $ block ) { if ( ! empty ( $ block ) && $ block <= 4 && $ block !== 0 && ! ( $ block < 0 ) ) { $ this -> block = $ block ; } }
Set the blocks.

@param $block Number of blocks.

@since 3.0.0

@return void
Set the blocks .