for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the `tvi/monitor-bundle` project.
*
* (c) https://github.com/turnaev/monitor-bundle/graphs/contributors
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/
namespace Tvi\MonitorBundle\Check\fs\DiskFree;
use ZendDiagnostics\Check\DiskFree;
use Tvi\MonitorBundle\Check\CheckAbstract;
* @author Vladimir Turnaev <[email protected]>
class Check extends CheckAbstract
{
* @param int|string $size minimum disk size in bytes or a valid byte string (IEC, SI or Jedec)
* @param string $path The disk path to check, i.e. '/tmp' or 'C:' (defaults to /)
* @throws \InvalidArgumentException
public function __construct($size, $path = '/')
$this->checker = new DiskFree($size, $path);
}