/** * * @param string $base_path * @param string[] $exclude_paths * @param int $recursive * @param string $locale * @throws PhpLibraryCheckerException */ public function __construct($base_path, $exclude_paths = array(), $recursive = null, $locale = 'en_US') { self::$locale = $locale; $realpath = realpath($base_path); if ($realpath === false) { throw new PhpLibraryCheckerException('The path "{path}" does not seem to exists.', array('{path}' => $base_path)); } $this->_base_path = $realpath; foreach ($exclude_paths as $path) { $realpath = realpath($path); if ($realpath === false) { throw new PhpLibraryCheckerException('The path "{path}" does not seem to exists.', array('{path}' => $path)); } $this->_exclude_paths[] = $realpath; } $this->_recursive = $recursive; }