src/Command/Command.php
public function setBinary(string $bin): Command
    {
        if (!is_file($bin)) {
            throw new \InvalidArgumentException('Binary file not exists: '.$bin, ErrorCodes::FILE_NOT_FOUND);
        }
        if (!is_executable($bin)) {
            throw new \InvalidArgumentException('Binary file is not executable: '.$bin, ErrorCodes::FILE_NOT_EXECUTABLE);
        }
        $this->bin = $bin;
        return $this;
    }
public function setBinary(string $bin): Command
    {
        if (!is_file($bin)) {
            throw new \InvalidArgumentException('Binary file not exists: '.$bin, ErrorCodes::FILE_NOT_FOUND);
        }
        if (!is_executable($bin)) {
            throw new \InvalidArgumentException('Binary file is not executable: '.$bin, ErrorCodes::FILE_NOT_EXECUTABLE);
        }
        $this->bin = $bin;
        return $this;
    }
public function setBinary ( string $ bin ) : Command { if ( ! is_file ( $ bin ) ) { throw new \ InvalidArgumentException ( 'Binary file not exists: ' . $ bin , ErrorCodes :: FILE_NOT_FOUND ) ; } if ( ! is_executable ( $ bin ) ) { throw new \ InvalidArgumentException ( 'Binary file is not executable: ' . $ bin , ErrorCodes :: FILE_NOT_EXECUTABLE ) ; } $ this -> bin = $ bin ; return $ this ; }
Set the path to the assimp binary

@param string $bin Path to the assimp executable
@throws \InvalidArgumentException
@return \Assimp\Command\Command
Set the path to the assimp binary